diff --git a/src/components/Application/src/search/AppSearch.vue b/src/components/Application/src/search/AppSearch.vue index 3048621..69f64a8 100644 --- a/src/components/Application/src/search/AppSearch.vue +++ b/src/components/Application/src/search/AppSearch.vue @@ -24,7 +24,7 @@ export default defineComponent({ default: () => , }} - + ) } diff --git a/src/components/Application/src/search/AppSearchModal.vue b/src/components/Application/src/search/AppSearchModal.vue index dbf22af..a6534e0 100644 --- a/src/components/Application/src/search/AppSearchModal.vue +++ b/src/components/Application/src/search/AppSearchModal.vue @@ -11,7 +11,7 @@ import { useI18n } from '@/hooks/web/useI18n' import { useAppInject } from '@/hooks/web/useAppInject' const props = defineProps({ - visible: { type: Boolean }, + open: { type: Boolean }, }) const emit = defineEmits(['close']) @@ -38,9 +38,9 @@ const getClass = computed(() => { }) watch( - () => props.visible, - (visible: boolean) => { - visible + () => props.open, + (open: boolean) => { + open && nextTick(() => { unref(inputRef)?.focus() }) @@ -56,7 +56,7 @@ function handleClose() {