1.1.5 • Published 7 years ago

lucky-wheel v1.1.5

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

lucky-wheel使用说明

  1. 安装lucky-wheel包 npm install -S lucky-wheel
  2. render组件
import LuckyWheel from 'lucky-wheel';

constructor(props) {
  super(props);
  this.state = {
    position: 0,
    isComplete: false
  }
}
handleLoadData = () => {
  setTimeout(() => {
    this.setState({
      position: 2,
      isComplete: true
    })
  }, 1000);
}
handleComplete = () => {
  this.setState({isComplete: false})
}

render() {
  return (
    <LuckyWheel
       onLoadData={this.handleLoadData}
       position={position}
       areaNum={7}
       cycle={10}
       isComplete={isComplete}
       onComplete={this.handleComplete}
    />
  )
}
1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago