tz-better-scroll-wheel
v2.5.5
Published
a BetterScroll plugin to imitate IOS Picker
Downloads
10
Maintainers
Readme
@better-scroll/wheel
Implement a plugin similar to the effects of the IOS Picker component.
Usage
import BScroll from 'tz-better-scroll-core'
import Wheel from 'tz-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
})