diff --git a/src/components/SearchInput.vue b/src/components/SearchInput.vue index 17bdcb6..ef19621 100644 --- a/src/components/SearchInput.vue +++ b/src/components/SearchInput.vue @@ -45,7 +45,7 @@ import {Plus} from "@element-plus/icons-vue"; const keyword = ref(""); const popoverRef = ref(); const inputRef = ref(); -const isVisible = ref(false); + interface showConfig { prop: string; label: string; @@ -56,6 +56,10 @@ const props = defineProps({ type: String, default: "" }, + width: { + type: Number, + default: 1000 + }, showConfig: { type: Array as () => showConfig[], default: () => [] @@ -100,7 +104,7 @@ const beforeShow = () => { popoverRef.value.hide(); } }; - +const isVisible =ref(false) const focus=()=>{ isVisible.value=true console.log( "focus输入框")