From a7752db5872e6e2f3bb8bbfc428a3290ebd595c0 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sat, 4 May 2024 23:57:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E4=BD=BF=E7=94=A8defi?= =?UTF-8?q?neModel=E5=AE=9A=E4=B9=89visible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/operate-drawer.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/common/operate-drawer.vue b/src/components/common/operate-drawer.vue index 7eb1396..dd3d139 100644 --- a/src/components/common/operate-drawer.vue +++ b/src/components/common/operate-drawer.vue @@ -17,11 +17,14 @@ interface Emits { (e: 'update:modelValue', modelValue: boolean): void; } +const visible = defineModel('visible', { + default: false +}); + const emit = defineEmits(); const slots = defineSlots(); const appStore = useAppStore(); const state = reactive({ width: 0 }); -const visible = ref(props.modelValue); const isFullscreen = ref(false); const drawerWidth = computed(() => { const maxMinWidth = 360;