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

2.5.1 • 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 @better-scroll/wheel

Weekly Downloads

5,714

Version

2.5.1

License

MIT

Unpacked Size

66.1 kB

Total Files

12

Last publish

Collaborators

  • hubvue
  • dolymood
  • candyj
  • theniceangel