Neurotic Programmer Masquerade
Have ideas to improve npm?Join in the discussion! »

@better-scroll/wheelTypeScript icon, indicating that this package has built-in type declarations

2.1.4 • 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
})

Install

npm i @better-scroll/wheel

DownloadsWeekly Downloads

2,151

Version

2.1.4

License

MIT

Unpacked Size

66.3 kB

Total Files

12

Last publish

Collaborators

  • avatar
  • avatar
  • avatar