feat: Modal.confirm supports zIndex prop #6722 (#6880)

* Modal.confirm supports zIndex prop #6722

* Fix filename

* Fix the zIndex missing in ModalFuncProps interface
This commit is contained in:
Alex Chao 2017-07-19 09:21:20 +08:00 committed by Benjy Cui
parent fafff32a49
commit 2aa34372b4
3 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,7 @@ export interface ModalProps {
transitionName?: string;
className?: string;
getContainer?: (instance: React.ReactInstance) => HTMLElement;
zIndex?: boolean;
}
export interface ModalContext {
@ -60,6 +61,7 @@ export interface ModalFuncProps {
okType?: ButtonType;
cancelText?: string;
iconType?: string;
zIndex?: boolean;
}
export type ModalFunc = (props: ModalFuncProps) => {
destroy: () => void,

View File

@ -91,6 +91,7 @@ export default function confirm(config) {
maskClosable={maskClosable}
style={style}
width={width}
zIndex={props.zIndex}
>
<div className={`${prefixCls}-body-wrapper`}>
{body} {footer}