修复列表搜索不能用键盘选择的问题

pull/733/head
lyswhut 2021-12-05 19:16:33 +08:00
parent 9291c35b00
commit 7f6e1c25e9
1 changed files with 3 additions and 3 deletions

View File

@ -6,9 +6,9 @@ div(:class="$style.container" ref="dom_container" v-show="isShow")
input.key-bind.ignore-esc(:placeholder="placeholder" v-model.trim="text" ref="dom_input"
@input="handleDelaySearch"
@keyup.enter="handleTemplistClick(selectIndex)"
@keyup.40.prevent="handleKeyDown"
@keyup.38.prevent="handleKeyUp"
@keyup.27.prevent="handleKeyEsc"
@keyup.arrow-down.prevent="handleKeyDown"
@keyup.arrow-up.prevent="handleKeyUp"
@keyup.escape.prevent="handleKeyEsc"
@contextmenu="handleContextMenu")
button(type="button" @click="handleHide")
slot