@better-scroll/wheel
v2.5.1
Published
a BetterScroll plugin to imitate IOS Picker
Downloads
25,751
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
})