From 89830ec7e69a7cab55e6ccf90b74377bcbadf44c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=B0=8F=E6=B0=91?= Date: Mon, 4 Mar 2024 10:56:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20basemodal=20=E6=97=A0=E6=B3=95=E9=80=8F?= =?UTF-8?q?=E4=BC=A0=20attributes=20=E8=87=B3=20Modal.tsx=20(#3637)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Modal/src/components/Modal.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Modal/src/components/Modal.tsx b/src/components/Modal/src/components/Modal.tsx index c68e1072861..cdbcd6714ce 100644 --- a/src/components/Modal/src/components/Modal.tsx +++ b/src/components/Modal/src/components/Modal.tsx @@ -2,7 +2,6 @@ import { Modal } from 'ant-design-vue'; import { defineComponent, toRefs, unref } from 'vue'; import { basicProps } from '../props'; import { useModalDragMove } from '../hooks/useModalDrag'; -import { useAttrs } from '@vben/hooks'; import { extendSlots } from '@/utils/helper/tsxHelper'; export default defineComponent({ @@ -10,9 +9,8 @@ export default defineComponent({ inheritAttrs: false, props: basicProps as any, emits: ['cancel'], - setup(props, { slots, emit }) { + setup(props, { slots, emit, attrs }) { const { open, draggable, destroyOnClose } = toRefs(props); - const attrs = useAttrs(); useModalDragMove({ open, destroyOnClose,