fix: Modal missing modalRender prop (#27272)

close #27174
This commit is contained in:
xyb 2020-10-30 19:52:12 +08:00 committed by GitHub
parent 972d280aa1
commit 9052af449b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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}
>
<div className={`${contentPrefixCls}-body-wrapper`}>
<div className={`${contentPrefixCls}-body`}>

View File

@ -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 {