DrawerChild.d.ts
1.43 KB
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
46
47
48
import * as React from 'react';
import { IDrawerChildProps } from './IDrawerPropTypes';
interface IState {
_self: DrawerChild;
prevProps?: IDrawerChildProps;
}
declare class DrawerChild extends React.Component<IDrawerChildProps, IState> {
static defaultProps: {
switchScrollingEffect: () => void;
};
static getDerivedStateFromProps(props: IDrawerChildProps, { prevProps, _self }: {
prevProps: IDrawerChildProps;
_self: DrawerChild;
}): {
prevProps: IDrawerChildProps;
};
private levelDom;
private dom;
private contentWrapper;
private contentDom;
private maskDom;
private handlerDom;
private drawerId;
private timeout;
private passive;
private startPos;
constructor(props: IDrawerChildProps);
componentDidMount(): void;
componentDidUpdate(prevProps: IDrawerChildProps): void;
componentWillUnmount(): void;
private domFocus;
private removeStartHandler;
private removeMoveHandler;
private transitionEnd;
private onKeyDown;
private onWrapperTransitionEnd;
private openLevelTransition;
private setLevelTransform;
private setLevelAndScrolling;
private toggleScrollingToDrawerAndBody;
private addScrollingEffect;
private remScrollingEffect;
private getCurrentDrawerSome;
private getLevelDom;
private getHorizontalBoolAndPlacementName;
render(): JSX.Element;
}
export default DrawerChild;