Commit bfdbccfece9a72f1a15df8dcde5007ddc8f99bec

Authored by CXM
Committed by GitHub
1 parent 246c5f79

fix: Dev/fix modal event (#1241)

* fix(type): fix ant-design-vue  ->

* fix: fix editor BasicModal type event check error
src/components/Modal/src/components/Modal.tsx
@@ -9,6 +9,7 @@ export default defineComponent({ @@ -9,6 +9,7 @@ export default defineComponent({
9 name: 'Modal', 9 name: 'Modal',
10 inheritAttrs: false, 10 inheritAttrs: false,
11 props: basicProps, 11 props: basicProps,
  12 + emits: ['cancel'],
12 setup(props, { slots }) { 13 setup(props, { slots }) {
13 const { visible, draggable, destroyOnClose } = toRefs(props); 14 const { visible, draggable, destroyOnClose } = toRefs(props);
14 const attrs = useAttrs(); 15 const attrs = useAttrs();
src/components/Modal/src/components/ModalHeader.vue
@@ -17,5 +17,6 @@ @@ -17,5 +17,6 @@
17 }, 17 },
18 title: { type: String }, 18 title: { type: String },
19 }, 19 },
  20 + emits: ['dblclick'],
20 }); 21 });
21 </script> 22 </script>