$ npm install spring-picker -S
import 'spring-picker/lib/style.css';
import { Picker, Popup } from 'spring-picker';
<Popup
onCancel={this.cancelUserPicker.bind(this)}
onConfirm={this.closeUserPicker.bind(this)}
visible={this.state.userPickerVisible}>
<Picker
onChange={this.handleChangeUser.bind(this)}
data={this.userData}
/>
</Popup>
# install dependencies
npm install
# run server
npm start
# build for production with minification
npm run build
Chrome打开开发者工具,切换到手机模拟器预览
https://springalskey.github.io/picker/index.html#/picker-demo