diff --git a/components/modal/confirm.tsx b/components/modal/confirm.tsx index ccd29ff0ca..cdf5cc69c2 100644 --- a/components/modal/confirm.tsx +++ b/components/modal/confirm.tsx @@ -14,7 +14,7 @@ interface ConfirmDialogProps extends ModalFuncProps { const IS_REACT_16 = !!ReactDOM.createPortal; const ConfirmDialog = (props: ConfirmDialogProps) => { - const { onCancel, onOk, close, zIndex, afterClose, visible, keyboard } = props; + const { onCancel, onOk, close, zIndex, afterClose, visible, keyboard, centered } = props; const iconType = props.iconType || 'question-circle'; const okType = props.okType || 'primary'; const prefixCls = props.prefixCls || 'ant-confirm'; @@ -57,6 +57,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => { zIndex={zIndex} afterClose={afterClose} keyboard={keyboard} + centered={centered} >