From fd06e829c1341b58653f55c6a7f3f864d8edc21c Mon Sep 17 00:00:00 2001 From: xingyu Date: Fri, 4 Aug 2023 19:12:01 +0800 Subject: [PATCH] feat: visible to open --- .../Application/src/search/AppSearch.vue | 2 +- .../Application/src/search/AppSearchModal.vue | 10 +++--- .../ContextMenu/src/ContextMenu.vue | 4 +-- src/components/Drawer/src/BasicDrawer.vue | 28 ++++++++-------- src/components/Drawer/src/props.ts | 2 +- src/components/Drawer/src/typing.ts | 14 ++++---- src/components/Drawer/src/useDrawer.ts | 22 ++++++------- .../Form/src/components/ApiSelect.vue | 6 ++-- .../Form/src/components/FileUpload.vue | 4 +-- .../VFormDesign/components/CodeModal.vue | 8 ++--- .../components/ImportJsonModal.vue | 8 ++--- .../VFormDesign/components/JsonModal.vue | 10 +++--- .../VFormDesign/components/PreviewCode.vue | 2 +- .../config/componentPropsConfig.ts | 2 +- .../src/components/VFormPreview/index.vue | 10 +++--- .../src/components/VFormPreview/useForm.vue | 10 +++--- src/components/Icon/src/IconPicker.vue | 4 +-- src/components/Modal/src/BasicModal.vue | 32 +++++++++---------- src/components/Modal/src/components/Modal.tsx | 4 +-- .../Modal/src/components/ModalWrapper.vue | 6 ++-- src/components/Modal/src/hooks/useModal.ts | 22 ++++++------- .../Modal/src/hooks/useModalDrag.ts | 4 +-- src/components/Modal/src/props.ts | 4 +-- src/components/Modal/src/typing.ts | 10 +++--- src/components/Preview/src/Preview.vue | 4 +-- src/components/Preview/src/typing.ts | 4 +-- .../SimpleMenu/src/components/SubMenuItem.vue | 8 ++--- .../src/components/editable/CellComponent.ts | 6 ++-- .../src/components/editable/EditableCell.vue | 14 ++++---- .../src/components/settings/ColumnSetting.vue | 10 +++--- src/components/Table/src/types/column.ts | 10 +++--- src/components/Table/src/types/table.ts | 2 +- src/layouts/default/sider/index.vue | 2 +- 33 files changed, 144 insertions(+), 144 deletions(-) diff --git a/src/components/Application/src/search/AppSearch.vue b/src/components/Application/src/search/AppSearch.vue index 3048621a..69f64a83 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 dbf22af5..a6534e0f 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() {