修复bug

This commit is contained in:
Jason
2022-08-29 19:06:22 +08:00
parent 729a63deca
commit 479fae0430
16 changed files with 93 additions and 19 deletions

View File

@@ -1,6 +1,10 @@
<template>
<div class="icon-select">
<el-popover v-model:visible="state.popoverVisible" :width="state.popoverWidth">
<el-popover
trigger="contextmenu"
v-model:visible="state.popoverVisible"
:width="state.popoverWidth"
>
<div
@mouseover.stop="state.mouseoverSelect = true"
@mouseout.stop="state.mouseoverSelect = false"
@@ -41,6 +45,7 @@
ref="inputRef"
v-model.trim="state.inputValue"
placeholder="搜索图标"
:autofocus="false"
:disabled="disabled"
@focus="handleFocus"
@blur="handleBlur"
@@ -112,7 +117,7 @@ const handleFocus = () => {
state.inputFocus = state.popoverVisible = true
}
// // input 框失去焦点
// input 框失去焦点
const handleBlur = () => {
state.inputFocus = false
state.popoverVisible = state.mouseoverSelect