可搜索下拉菜单 输入无匹配时,移出焦点,应该清楚输入的query
This commit is contained in:
parent
2810d8c78d
commit
eda30489eb
1 changed files with 3 additions and 1 deletions
|
@ -442,7 +442,7 @@
|
|||
const model = this.model;
|
||||
|
||||
if (this.multiple) {
|
||||
//
|
||||
this.query = '';
|
||||
} else {
|
||||
if (model !== '') {
|
||||
this.findChild((child) => {
|
||||
|
@ -450,6 +450,8 @@
|
|||
this.query = child.label === undefined ? child.searchLabel : child.label;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.query = '';
|
||||
}
|
||||
}
|
||||
}, 300);
|
||||
|
|
Loading…
Add table
Reference in a new issue