UNPKG

1.67 kBTypeScriptView Raw
1import * as React from 'react';
2import { IDialogPropTypes } from './IDialogPropTypes';
3export interface IDialogChildProps extends IDialogPropTypes {
4 getOpenCount: () => number;
5 switchScrollingEffect?: () => void;
6}
7export default class Dialog extends React.Component<IDialogChildProps, any> {
8 static defaultProps: {
9 className: string;
10 mask: boolean;
11 visible: boolean;
12 keyboard: boolean;
13 closable: boolean;
14 maskClosable: boolean;
15 destroyOnClose: boolean;
16 prefixCls: string;
17 focusTriggerAfterClose: boolean;
18 };
19 private inTransition;
20 private titleId;
21 private openTime;
22 private lastOutSideFocusNode;
23 private wrap;
24 private dialog;
25 private sentinelStart;
26 private sentinelEnd;
27 private dialogMouseDown;
28 private timeoutId;
29 private switchScrollingEffect;
30 constructor(props: IDialogChildProps);
31 componentDidMount(): void;
32 componentDidUpdate(prevProps: IDialogPropTypes): void;
33 componentWillUnmount(): void;
34 tryFocus(): void;
35 onAnimateLeave: () => void;
36 onDialogMouseDown: () => void;
37 onMaskMouseUp: React.MouseEventHandler<HTMLDivElement>;
38 onMaskClick: (e: React.MouseEvent<HTMLDivElement>) => void;
39 onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
40 getDialogElement: () => JSX.Element;
41 getZIndexStyle: () => any;
42 getWrapStyle: () => any;
43 getMaskStyle: () => any;
44 getMaskElement: () => any;
45 getMaskTransitionName: () => string;
46 getTransitionName: () => string;
47 close: (e: any) => void;
48 saveRef: (name: string) => (node: any) => void;
49 render(): JSX.Element;
50}