diff --git a/src/components/SearchInput.vue b/src/components/SearchInput.vue index 858c73e..69ffdb4 100644 --- a/src/components/SearchInput.vue +++ b/src/components/SearchInput.vue @@ -28,7 +28,8 @@ @@ -90,7 +91,7 @@ const changeInput = (inputStr: string) => { }; -const emit = defineEmits(['selectedCallBack','focus']); +const emit = defineEmits(['selectedCallBack', 'focus']); const clickRow = (row: any) => { emit('selectedCallBack', row); @@ -103,11 +104,11 @@ const beforeShow = () => { popoverRef.value.hide(); } }; -const isVisible =ref(false) -const focus=()=>{ - isVisible.value=true - console.log( "focus输入框") - emit('focus',true) +const isVisible = ref(false) +const focus = () => { + isVisible.value = true + console.log("focus输入框") + emit('focus', true) } const handlerBlur = () => { isVisible.value = false diff --git a/src/components/common/goods/GoodsDetail.vue b/src/components/common/goods/GoodsDetail.vue index 4785123..d73078f 100644 --- a/src/components/common/goods/GoodsDetail.vue +++ b/src/components/common/goods/GoodsDetail.vue @@ -1,7 +1,45 @@