|
1 hete | |
---|---|---|
.. | ||
dist | 1 hete | |
src | 1 hete | |
LICENSE | 1 hete | |
README.md | 1 hete | |
README_zh-CN.md | 1 hete | |
package.json | 1 hete |
Implement a plugin similar to the effects of the IOS Picker component.
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
})