提交 29e68666 编写于 作者: Q qiang

fix: 修复App端service层和view层通讯延迟较大时导致循环的问题

上级 54cf2bc1
......@@ -23,17 +23,13 @@ export default {
valueSync: this._getValueString(this.value)
}
},
watch: {
valueSync (value) {
this.$emit('update:value', value)
}
},
created () {
const valueChange = this.__valueChange = debounce((val, oldVal) => {
const valueChange = this.__valueChange = debounce((val) => {
this.valueSync = this._getValueString(val)
}, 100)
this.$watch('value', valueChange)
this.__triggerInput = throttle(($event, detail) => {
this.$emit('update:value', detail.value)
this.$trigger('input', $event, detail)
}, 100)
this.$triggerInput = ($event, detail) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册