Open larrykkk opened 5 years ago
先給 <el-autotcomplete> 一個 ref="autocomplete"
<el-autotcomplete>
ref="autocomplete"
然後在
@keyup.enter.native.prevent="inputSearch(keyword)"
裡面寫
this.$refs.autocomplete.$refs.suggestions.showPopper = false;
這樣按下 enter 之後就會一起將提示框關閉了
先給
<el-autotcomplete>
一個ref="autocomplete"
然後在
@keyup.enter.native.prevent="inputSearch(keyword)"
裡面寫
this.$refs.autocomplete.$refs.suggestions.showPopper = false;
這樣按下 enter 之後就會一起將提示框關閉了