Skip to content

Commit

Permalink
Modal.xxx support maskStyle
Browse files Browse the repository at this point in the history
fix #12688
  • Loading branch information
zombieJ committed Oct 27, 2018
1 parent b1f9d36 commit 9aa62d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/modal/Modal.tsx
Expand Up @@ -79,6 +79,7 @@ export interface ModalFuncProps {
zIndex?: number;
okCancel?: boolean;
style?: React.CSSProperties;
maskStyle?: React.CSSProperties;
type?: string;
keyboard?: boolean;
getContainer?: (instance: React.ReactInstance) => HTMLElement;
Expand Down
3 changes: 2 additions & 1 deletion components/modal/confirm.tsx
Expand Up @@ -15,7 +15,7 @@ interface ConfirmDialogProps extends ModalFuncProps {
const IS_REACT_16 = !!ReactDOM.createPortal;

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 okType = props.okType || 'primary';
const prefixCls = props.prefixCls || 'ant-modal';
Expand Down Expand Up @@ -56,6 +56,7 @@ const ConfirmDialog = (props: ConfirmDialogProps) => {
footer=""
maskTransitionName="fade"
maskClosable={maskClosable}
maskStyle={maskStyle}
style={style}
width={width}
zIndex={zIndex}
Expand Down

0 comments on commit 9aa62d4

Please sign in to comment.