提交 a6a8e7cb 编写于 作者: Q qiang

fix: 修复picker组件在h5平台点击确定不触发change事件的问题

上级 a4da226c
......@@ -229,17 +229,6 @@ export default {
this.valueSync = val
}
},
valueSync (value) {
if (this.valueChangeSource) {
this.$trigger(
'change',
{},
{
value
}
)
}
},
valueArray (val) {
if (this.mode === mode.TIME || this.mode === mode.DATE) {
let getValue =
......@@ -444,6 +433,9 @@ export default {
this.valueChangeSource = 'click'
let value = this._getValue()
this.valueSync = Array.isArray(value) ? value.map(val => val) : value
this.$trigger('change', {}, {
value
})
},
_cancel () {
this._close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册