From f32d1f412a79aef07ce5041f1d76d73c85375b0a Mon Sep 17 00:00:00 2001 From: Wu-K'ung <2292884238@qq.com> Date: Wed, 25 Apr 2018 21:05:17 +0800 Subject: [PATCH] 修复autoComplete的on-change事件的bug --- src/components/auto-complete/auto-complete.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/auto-complete/auto-complete.vue b/src/components/auto-complete/auto-complete.vue index de09b85..730d294 100644 --- a/src/components/auto-complete/auto-complete.vue +++ b/src/components/auto-complete/auto-complete.vue @@ -124,7 +124,9 @@ }, watch: { value (val) { - this.disableEmitChange = true; + if(this.currentValue !== val){ + this.disableEmitChange = true; + } this.currentValue = val; }, currentValue (val) { @@ -161,4 +163,4 @@ } } }; - \ No newline at end of file + -- libgit2 0.21.4