Skip to content

Commit

Permalink
fix: basemodal 无法透传 attributes 至 Modal.tsx (#3637)
Browse files Browse the repository at this point in the history
  • Loading branch information
DesignHhuang authored Mar 4, 2024
1 parent eae68bb commit 89830ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Modal/src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ 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({
name: 'Modal',
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,
Expand Down

0 comments on commit 89830ec

Please sign in to comment.