From 73c71e19a20d7d746707f4566a6dcd2faa4876ef Mon Sep 17 00:00:00 2001 From: zkwolf Date: Sat, 27 Mar 2021 22:03:23 +0800 Subject: [PATCH] fix: modal.confirm closable invalid #3844 (#3845) --- components/modal/ConfirmDialog.tsx | 2 ++ components/modal/Modal.tsx | 1 + 2 files changed, 3 insertions(+) diff --git a/components/modal/ConfirmDialog.tsx b/components/modal/ConfirmDialog.tsx index 461520893..a9e3b8624 100644 --- a/components/modal/ConfirmDialog.tsx +++ b/components/modal/ConfirmDialog.tsx @@ -16,6 +16,7 @@ const ConfirmDialog: FunctionalComponent = props => { onCancel, onOk, close, + closable = false, zIndex, afterClose, visible, @@ -83,6 +84,7 @@ const ConfirmDialog: FunctionalComponent = props => { keyboard={keyboard} centered={centered} getContainer={getContainer} + closable={closable} >
diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index 3c50807c1..2136730f4 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -102,6 +102,7 @@ export interface ModalFuncProps { class?: string; visible?: boolean; title?: VNodeTypes; + closable?: boolean; content?: VNodeTypes; // TODO: find out exact types onOk?: (...args: any[]) => any;