Skip to content

Commit 97b243e

Browse files
committed
fix🐛: 修复BasicModal type事件检查错误
1 parent fcccd98 commit 97b243e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/components/Modal/src/components/Modal.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default defineComponent({
99
name: 'Modal',
1010
inheritAttrs: false,
1111
props: basicProps,
12+
emits: ['cancel'],
1213
setup(props, { slots }) {
1314
const { visible, draggable, destroyOnClose } = toRefs(props);
1415
const attrs = useAttrs();

src/components/Modal/src/components/ModalHeader.vue

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
},
1818
title: { type: String },
1919
},
20+
emits: ['dblclick'],
2021
});
2122
</script>

0 commit comments

Comments
 (0)