diff --git a/components/modal/ConfirmDialog.tsx b/components/modal/ConfirmDialog.tsx index f580336380..d9690ed4a1 100644 --- a/components/modal/ConfirmDialog.tsx +++ b/components/modal/ConfirmDialog.tsx @@ -31,6 +31,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => { direction, prefixCls, rootPrefixCls, + modalRender, } = props; devWarning( @@ -93,6 +94,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => { keyboard={keyboard} centered={centered} getContainer={getContainer} + modalRender={modalRender} >
diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index 36be0bdd98..acce2ac47c 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -80,6 +80,7 @@ export interface ModalProps { wrapProps?: any; prefixCls?: string; closeIcon?: React.ReactNode; + modalRender?: (node: React.ReactNode) => React.ReactNode; } type getContainerFunc = () => HTMLElement; @@ -114,6 +115,7 @@ export interface ModalFuncProps { transitionName?: string; maskTransitionName?: string; direction?: string; + modalRender?: (node: React.ReactNode) => React.ReactNode; } export interface ModalLocale {