Skip to content

Commit

Permalink
feat(indicators): add indicators in better-scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
theniceangel committed Feb 1, 2021
1 parent 2c7825b commit f973476
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/better-scroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion packages/better-scroll/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -21,7 +22,7 @@ export {
MountedBScrollHTMLElement,
Behavior,
Boundary,
CustomAPI,
CustomAPI
} from '@better-scroll/core'

export {
Expand All @@ -37,6 +38,7 @@ export {
InfinityScroll,
Movable,
ObserveImage,
Indicators
}

BScroll.use(MouseWheel)
Expand All @@ -51,5 +53,6 @@ BScroll.use(MouseWheel)
.use(InfinityScroll)
.use(Movable)
.use(ObserveImage)
.use(Indicators)

export default BScroll

0 comments on commit f973476

Please sign in to comment.