We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c13c96 commit 12e70c1Copy full SHA for 12e70c1
components/modal/Modal.tsx
@@ -51,7 +51,8 @@ export const modalProps = () => ({
51
onOk: Function as PropType<(e: MouseEvent) => void>,
52
onCancel: Function as PropType<(e: MouseEvent) => void>,
53
'onUpdate:visible': Function as PropType<(visible: boolean) => void>,
54
- onChange: Function as PropType<(visible: boolean) => void>,
+ 'onUpdate:open': Function as PropType<(open: boolean) => void>,
55
+ onChange: Function as PropType<(open: boolean) => void>,
56
afterClose: Function as PropType<() => void>,
57
centered: { type: Boolean, default: undefined },
58
width: [String, Number],
@@ -179,6 +180,7 @@ export default defineComponent({
179
180
};
181
182
const handleOk = (e: MouseEvent) => {
183
+ emit('update:open', true);
184
emit('ok', e);
185
186
0 commit comments