Package Exports
- @better-scroll/wheel
- @better-scroll/wheel/dist/wheel.esm.js
- @better-scroll/wheel/dist/wheel.min.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@better-scroll/wheel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@better-scroll/wheel
Implement a plugin similar to the effects of the IOS Picker component.
Usage
import BScroll from '@better-scroll/core'
import Wheel from '@better-scroll/wheel'
BScroll.use(Wheel)
const bs = new BScroll('.wheel-wrapper', {
wheel: {
selectedIndex: 0,
wheelWrapperClass: 'wheel-scroll',
wheelItemClass: 'wheel-item',
wheelDisabledItemClass: 'wheel-disabled-item'
},
probeType: 3
})