@fyzhu/wheel
TypeScript icon, indicating that this package has built-in type declarations

2.5.2 • Public • Published

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

Package Sidebar

Install

npm i @fyzhu/wheel

Weekly Downloads

2

Version

2.5.2

License

MIT

Unpacked Size

65.5 kB

Total Files

11

Last publish

Collaborators

  • fyzhu