tz-better-scroll-wheel
TypeScript icon, indicating that this package has built-in type declarations

2.5.5 • Public • Published

@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
})

Package Sidebar

Install

npm i tz-better-scroll-wheel

Weekly Downloads

10

Version

2.5.5

License

MIT

Unpacked Size

66 kB

Total Files

12

Last publish

Collaborators

  • eat-fish