黄小民
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
3 deletions
-
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, |
|
|
|
|