mirror of https://github.com/ElemeFE/element
fix(autocomplete): it's abount click clear button and the drop-down box does not appear
fix #21377,fix #19050, fix #18970pull/21398/head
parent
ae71d7da1c
commit
557538837f
|
@ -549,6 +549,7 @@ export default {
|
||||||
v-model="state"
|
v-model="state"
|
||||||
:fetch-suggestions="querySearchAsync"
|
:fetch-suggestions="querySearchAsync"
|
||||||
placeholder="请输入内容"
|
placeholder="请输入内容"
|
||||||
|
clearable
|
||||||
@select="handleSelect"
|
@select="handleSelect"
|
||||||
></el-autocomplete>
|
></el-autocomplete>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -195,6 +195,7 @@
|
||||||
this.suggestions = [];
|
this.suggestions = [];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.activated = true;
|
||||||
this.debouncedGetData(value);
|
this.debouncedGetData(value);
|
||||||
},
|
},
|
||||||
handleChange(value) {
|
handleChange(value) {
|
||||||
|
|
Loading…
Reference in New Issue