import { ScrollList, ScrollItem, Button } from '@douyinfe/semi-ui'; import React from 'react'; class SingleScrollListDemo extends React.Component { constructor(props) { super(props); this.state = { selectIndex3: -2, }; this.minutes = new Array(60).fill(0).map((itm, index) => { return { value: index, disabled: index % 2 === 1 ? true : false, }; }); this.onSelectMinute = this.onSelectMinute.bind(this); this.handleClose = this.handleClose.bind(this); this.renderFooter = this.renderFooter.bind(this); } onSelectMinute(data) { console.log('You have choose the minute for: ', data.value); this.setState({ ['selectIndex' + data.type]: data.index, }); } handleClose() { console.log('close'); } renderFooter() { return ( ); } render() { let list = this.list; const scrollStyle = { border: 'unset', boxShadow: 'unset', }; const commonProps = { // mode: 'normal', mode: 'wheel', cycled: false, motion: false, }; return (
); } } export default SingleScrollListDemo;