Commit 037dd448 by 张立顺

修改日期组件bug

1 parent 35047fe8
......@@ -45,6 +45,7 @@ Component({
},
dateChange(e) {
let { current, source } = e.detail
let {dayType} = this.data
// console.log(source)
// console.log(current)
/**
......@@ -54,7 +55,8 @@ Component({
*/
source == 'touch' &&
this.setData({
current
// current
[dayType?'current':'yearCurrent']:current
})
},
bindDateChange: function (e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!