UNPKG

1.1 kBTypeScriptView Raw
1import * as React from 'react';
2import type { IDrawerProps } from './IDrawerPropTypes';
3interface IState {
4 open: boolean;
5}
6declare class DrawerWrapper extends React.Component<IDrawerProps, IState> {
7 static defaultProps: {
8 prefixCls: string;
9 placement: string;
10 getContainer: string;
11 defaultOpen: boolean;
12 level: string;
13 duration: string;
14 ease: string;
15 onChange: () => void;
16 afterVisibleChange: () => void;
17 handler: JSX.Element;
18 showMask: boolean;
19 maskClosable: boolean;
20 maskStyle: {};
21 wrapperClassName: string;
22 className: string;
23 keyboard: boolean;
24 forceRender: boolean;
25 autoFocus: boolean;
26 };
27 static getDerivedStateFromProps(props: IDrawerProps, { prevProps }: {
28 prevProps: IDrawerProps;
29 }): {
30 open?: boolean;
31 prevProps: IDrawerProps;
32 };
33 dom: HTMLElement | null;
34 constructor(props: IDrawerProps);
35 private onHandleClick;
36 private onClose;
37 render(): JSX.Element;
38}
39export default DrawerWrapper;