AutoComplete: add clear event (#13326)

* AutoComplete: add clear event(#13317)

* remove arg in `handleClear` in AutoComplete
pull/13337/head
Harlan 2018-11-07 17:20:06 +08:00 committed by hetech
parent 1f592944d6
commit 036102675a
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@
@input="handleChange"
@focus="handleFocus"
@blur="handleBlur"
@clear="handleClear"
@keydown.up.native.prevent="highlight(highlightedIndex - 1)"
@keydown.down.native.prevent="highlight(highlightedIndex + 1)"
@keydown.enter.native="handleKeyEnter"
@ -193,6 +194,9 @@
handleBlur(event) {
this.$emit('blur', event);
},
handleClear() {
this.$emit('clear');
},
close(e) {
this.activated = false;
},