Browse Source

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

* Modal.confirm supports zIndex prop #6722

* Fix filename

* Fix the zIndex missing in ModalFuncProps interface
pull/7129/merge
Alex Chao 7 years ago
committed by 乐仪
parent
commit
3727ea2c33
  1. 2
      components/modal/Modal.tsx
  2. 0
      components/modal/__tests__/confirm.test.js
  3. 1
      components/modal/confirm.tsx

2
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,

0
components/modal/__tests__/comfirm.test.js → components/modal/__tests__/confirm.test.js

1
components/modal/confirm.tsx

@ -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…
Cancel
Save