Commit bc0040d5fb37e80dca08fe9a630a6cdc6f410961

Authored by 梁灏
1 parent f37a6d10

AutoComplete add @on-clear event, close #2426

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/components/auto-complete/auto-complete.vue
@@ -166,6 +166,7 @@ @@ -166,6 +166,7 @@
166 if (!this.clearable) return; 166 if (!this.clearable) return;
167 this.currentValue = ''; 167 this.currentValue = '';
168 this.$refs.select.reset(); 168 this.$refs.select.reset();
  169 + this.$emit('on-clear');
169 } 170 }
170 } 171 }
171 }; 172 };