mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-13 04:53:11 +08:00
parent
b1f9d36881
commit
9aa62d42c2
@ -79,6 +79,7 @@ export interface ModalFuncProps {
|
|||||||
zIndex?: number;
|
zIndex?: number;
|
||||||
okCancel?: boolean;
|
okCancel?: boolean;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
|
maskStyle?: React.CSSProperties;
|
||||||
type?: string;
|
type?: string;
|
||||||
keyboard?: boolean;
|
keyboard?: boolean;
|
||||||
getContainer?: (instance: React.ReactInstance) => HTMLElement;
|
getContainer?: (instance: React.ReactInstance) => HTMLElement;
|
||||||
|
@ -15,7 +15,7 @@ interface ConfirmDialogProps extends ModalFuncProps {
|
|||||||
const IS_REACT_16 = !!ReactDOM.createPortal;
|
const IS_REACT_16 = !!ReactDOM.createPortal;
|
||||||
|
|
||||||
const ConfirmDialog = (props: ConfirmDialogProps) => {
|
const ConfirmDialog = (props: ConfirmDialogProps) => {
|
||||||
const { onCancel, onOk, close, zIndex, afterClose, visible, keyboard, centered, getContainer, okButtonProps, cancelButtonProps } = props;
|
const { onCancel, onOk, close, zIndex, afterClose, visible, keyboard, centered, getContainer, maskStyle, okButtonProps, cancelButtonProps } = props;
|
||||||
const iconType = props.iconType || 'question-circle';
|
const iconType = props.iconType || 'question-circle';
|
||||||
const okType = props.okType || 'primary';
|
const okType = props.okType || 'primary';
|
||||||
const prefixCls = props.prefixCls || 'ant-modal';
|
const prefixCls = props.prefixCls || 'ant-modal';
|
||||||
@ -56,6 +56,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
|
|||||||
footer=""
|
footer=""
|
||||||
maskTransitionName="fade"
|
maskTransitionName="fade"
|
||||||
maskClosable={maskClosable}
|
maskClosable={maskClosable}
|
||||||
|
maskStyle={maskStyle}
|
||||||
style={style}
|
style={style}
|
||||||
width={width}
|
width={width}
|
||||||
zIndex={zIndex}
|
zIndex={zIndex}
|
||||||
|
Loading…
Reference in New Issue
Block a user