mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
* Modal.confirm supports zIndex prop #6722 * Fix filename * Fix the zIndex missing in ModalFuncProps interface
This commit is contained in:
parent
a9430e6748
commit
3727ea2c33
@ -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,
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user