Commit 037dd448 by 张立顺

修改日期组件bug

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