/
IDialogPropTypes.tsx
45 lines (43 loc) · 1.15 KB
/
IDialogPropTypes.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { ReactNode, CSSProperties, SyntheticEvent } from 'react';
type IStringOrHtmlElement = string | HTMLElement;
export interface IDialogPropTypes {
className?: string;
keyboard?: boolean;
style?: CSSProperties;
mask?: boolean;
children?: any;
afterClose?: () => any;
onClose?: (e: SyntheticEvent<HTMLDivElement>) => any;
closable?: boolean;
maskClosable?: boolean;
visible?: boolean;
destroyOnClose ?: boolean;
mousePosition?: {
x: number,
y: number,
};
title?: ReactNode;
footer?: ReactNode;
transitionName?: string;
maskTransitionName?: string;
animation?: any;
maskAnimation?: any;
wrapStyle?: {};
bodyStyle?: {};
maskStyle?: {};
prefixCls?: string;
wrapClassName?: string;
width?: number;
height?: number;
zIndex?: number;
bodyProps?: any;
maskProps?: any;
wrapProps?: any;
getContainer?: IStringOrHtmlElement | (() => IStringOrHtmlElement) | false;
closeIcon?: ReactNode;
modalRender?: (node: ReactNode) => ReactNode;
forceRender?: boolean;
// https://github.com/ant-design/ant-design/issues/19771
// https://github.com/react-component/dialog/issues/95
focusTriggerAfterClose?: boolean;
}