diff --git a/components/modal/Modal.tsx b/components/modal/Modal.tsx index 99b892828f..3e3af69ac8 100644 --- a/components/modal/Modal.tsx +++ b/components/modal/Modal.tsx @@ -40,6 +40,7 @@ export interface ModalProps { transitionName?: string; className?: string; getContainer?: (instance: React.ReactInstance) => HTMLElement; + zIndex?: boolean; } export interface ModalContext { @@ -61,6 +62,7 @@ export interface ModalFuncProps { cancelText?: string; iconType?: string; maskClosable?: boolean; + zIndex?: boolean; } export type ModalFunc = (props: ModalFuncProps) => { destroy: () => void, diff --git a/components/modal/__tests__/comfirm.test.js b/components/modal/__tests__/confirm.test.js similarity index 100% rename from components/modal/__tests__/comfirm.test.js rename to components/modal/__tests__/confirm.test.js diff --git a/components/modal/confirm.tsx b/components/modal/confirm.tsx index 2f22766fad..71dd928be3 100644 --- a/components/modal/confirm.tsx +++ b/components/modal/confirm.tsx @@ -91,6 +91,7 @@ export default function confirm(config) { maskClosable={maskClosable} style={style} width={width} + zIndex={props.zIndex} >
{body} {footer}