Skip to content

Commit c5ac4f9

Browse files
committed
fix(modal): add onUpdate:open prop
1 parent 6c13c96 commit c5ac4f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: components/modal/Modal.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export const modalProps = () => ({
5151
onOk: Function as PropType<(e: MouseEvent) => void>,
5252
onCancel: Function as PropType<(e: MouseEvent) => void>,
5353
'onUpdate:visible': Function as PropType<(visible: boolean) => void>,
54-
onChange: Function as PropType<(visible: boolean) => void>,
54+
'onUpdate:open': Function as PropType<(open: boolean) => void>,
55+
onChange: Function as PropType<(open: boolean) => void>,
5556
afterClose: Function as PropType<() => void>,
5657
centered: { type: Boolean, default: undefined },
5758
width: [String, Number],

0 commit comments

Comments
 (0)