mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
* feat: cell 自定义组件 * [new feature] DatetimePicker:新增时间选择组件 * fix: support picker view * improvement:支持 picker-view * fix: issue #286
17 lines
319 B
JavaScript
17 lines
319 B
JavaScript
Page({
|
|
onLoad () {
|
|
setTimeout(() => {
|
|
this.setData({
|
|
date: new Date('2300/12/12').getTime()
|
|
})
|
|
}, 100)
|
|
},
|
|
|
|
customChange ({detail}) {
|
|
this.setData({pickerView1: detail.value.join('-')})
|
|
},
|
|
|
|
nativeChange ({detail}) {
|
|
this.setData({pickerView2: detail.value.join('-')})
|
|
}
|
|
}) |