From 399d7851e34b4d8355e5d753b9e63ffdde99da09 Mon Sep 17 00:00:00 2001 From: webfansplz <308241863@qq.com> Date: Sun, 15 Jan 2023 14:06:12 +0800 Subject: [PATCH] chore: use `defineOptions` instead of script (#1154) --- components/modal/ModalDialog.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/components/modal/ModalDialog.vue b/components/modal/ModalDialog.vue index af51f5dc..d1a791e7 100644 --- a/components/modal/ModalDialog.vue +++ b/components/modal/ModalDialog.vue @@ -53,6 +53,10 @@ const { modelValue: visible } = defineModel<{ modelValue: boolean }>() +defineOptions({ + inheritAttrs: false, +}) + const deactivated = useDeactivated() const route = useRoute() @@ -132,12 +136,6 @@ useEventListener('keydown', (e: KeyboardEvent) => { }) - -