popoPicker是一个仿iOS的3d滚轮选择器,无依赖,仅13kb
无
//Picker
new popoPicker('.js-picker', {
wheels: [{
infinite: false,
//selected: 3,
data: [
{ value: 0, display: '选项一' },
{ value: 1, display: '选项二' },
{ value: 2, display: '选项三' },
{ value: 3, display: '选项四' },
{ value: 4, display: '选项五' },
{ value: 5, display: '选项六' },
{ value: 6, display: '选项七' }
]
}],
background: 'dark'
});
//Date
new popoDateTime('.js-date', {
time: false,
background: 'light'
});
//Time
new popoDateTime('.js-time', {
date: false,
background: 'dark'
});
//DateTime
new popoDateTime('.js-datetime', {
background: 'dark'
});
更多配置和用法,请参考popoPicker