mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
* Modal.confirm supports zIndex prop #6722 * Fix filename * Fix the zIndex missing in ModalFuncProps interface
This commit is contained in:
parent
fafff32a49
commit
2aa34372b4
@ -40,6 +40,7 @@ export interface ModalProps {
|
|||||||
transitionName?: string;
|
transitionName?: string;
|
||||||
className?: string;
|
className?: string;
|
||||||
getContainer?: (instance: React.ReactInstance) => HTMLElement;
|
getContainer?: (instance: React.ReactInstance) => HTMLElement;
|
||||||
|
zIndex?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ModalContext {
|
export interface ModalContext {
|
||||||
@ -60,6 +61,7 @@ export interface ModalFuncProps {
|
|||||||
okType?: ButtonType;
|
okType?: ButtonType;
|
||||||
cancelText?: string;
|
cancelText?: string;
|
||||||
iconType?: string;
|
iconType?: string;
|
||||||
|
zIndex?: boolean;
|
||||||
}
|
}
|
||||||
export type ModalFunc = (props: ModalFuncProps) => {
|
export type ModalFunc = (props: ModalFuncProps) => {
|
||||||
destroy: () => void,
|
destroy: () => void,
|
||||||
|
@ -91,6 +91,7 @@ export default function confirm(config) {
|
|||||||
maskClosable={maskClosable}
|
maskClosable={maskClosable}
|
||||||
style={style}
|
style={style}
|
||||||
width={width}
|
width={width}
|
||||||
|
zIndex={props.zIndex}
|
||||||
>
|
>
|
||||||
<div className={`${prefixCls}-body-wrapper`}>
|
<div className={`${prefixCls}-body-wrapper`}>
|
||||||
{body} {footer}
|
{body} {footer}
|
||||||
|
Loading…
Reference in New Issue
Block a user