0.0.1 • Published 5 years ago

timeslide v0.0.1

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

timeslide

时间块选择组件

使用

```
class App extends Component {

    constructor(props){
        super(props);
        this.state={
        value:[7,8,11,12]
        }
    }

    handleClick=(value)=>{
        this.setState({
            value
        })
    }
    render() {
        const {value}=this.state;
        return (
        <div>
            <TimeSlide startTime={8}  endTime={22} value={value} onChange={this.handleClick} />
        </div>
        );
    }
}

ReactDOM.render(<App />, appElement);
```

后续更新

  • 添加disabled
  • 支持其他相关参数设置:class、width等
  • 支持精度半小时