This commit is contained in:
梁灏 2017-03-29 10:29:12 +08:00
parent f7674b5b74
commit 7b7178f165
3 changed files with 7 additions and 3 deletions

View file

@ -359,8 +359,11 @@
this.showClose = false;
},
handleIconClick () {
if (!this.showClose) return;
this.handleClear();
if (this.showClose) {
this.handleClear();
} else {
this.handleFocus();
}
},
handleClear () {
this.visible = false;