From f9734761a1f75ccf7bdd56b1fcc13983752e6c3d Mon Sep 17 00:00:00 2001 From: jizhi Date: Mon, 1 Feb 2021 22:45:42 +0800 Subject: [PATCH] feat(indicators): add indicators in better-scroll --- packages/better-scroll/package.json | 1 + packages/better-scroll/src/index.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/better-scroll/package.json b/packages/better-scroll/package.json index a15a9180..c981e9cf 100644 --- a/packages/better-scroll/package.json +++ b/packages/better-scroll/package.json @@ -41,6 +41,7 @@ "@better-scroll/pull-down": "^2.1.4", "@better-scroll/pull-up": "^2.1.4", "@better-scroll/scroll-bar": "^2.1.4", + "@better-scroll/indicators": "^2.1.4", "@better-scroll/slide": "^2.1.4", "@better-scroll/wheel": "^2.1.4", "@better-scroll/zoom": "^2.1.4" diff --git a/packages/better-scroll/src/index.ts b/packages/better-scroll/src/index.ts index a45e1f5d..2cc8d404 100644 --- a/packages/better-scroll/src/index.ts +++ b/packages/better-scroll/src/index.ts @@ -11,6 +11,7 @@ import NestedScroll from '@better-scroll/nested-scroll' import InfinityScroll from '@better-scroll/infinity' import Movable from '@better-scroll/movable' import ObserveImage from '@better-scroll/observe-image' +import Indicators from '@better-scroll/indicators' export { createBScroll, @@ -21,7 +22,7 @@ export { MountedBScrollHTMLElement, Behavior, Boundary, - CustomAPI, + CustomAPI } from '@better-scroll/core' export { @@ -37,6 +38,7 @@ export { InfinityScroll, Movable, ObserveImage, + Indicators } BScroll.use(MouseWheel) @@ -51,5 +53,6 @@ BScroll.use(MouseWheel) .use(InfinityScroll) .use(Movable) .use(ObserveImage) + .use(Indicators) export default BScroll