From c5ac4f96b0bccc9736460bb443795b96267eff6b Mon Sep 17 00:00:00 2001 From: Konv Suu <2583695112@qq.com> Date: Tue, 22 Aug 2023 14:25:26 +0800 Subject: [PATCH] fix(modal): add onUpdate:open prop --- components/modal/Modal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index e469f0e1e5..0e749a7d67 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -51,7 +51,8 @@ export const modalProps = () => ({ onOk: Function as PropType<(e: MouseEvent) => void>, onCancel: Function as PropType<(e: MouseEvent) => void>, 'onUpdate:visible': Function as PropType<(visible: boolean) => void>, - onChange: Function as PropType<(visible: boolean) => void>, + 'onUpdate:open': Function as PropType<(open: boolean) => void>, + onChange: Function as PropType<(open: boolean) => void>, afterClose: Function as PropType<() => void>, centered: { type: Boolean, default: undefined }, width: [String, Number],