UNPKG

1.24 kBTypeScriptView Raw
1/// <reference types="react" />
2import React from 'react';
3import SwipeoutPropType from './PropTypes';
4export default class Swipeout extends React.Component<SwipeoutPropType, any> {
5 static defaultProps: {
6 prefixCls: string;
7 autoClose: boolean;
8 disabled: boolean;
9 left: never[];
10 right: never[];
11 onOpen(): void;
12 onClose(): void;
13 };
14 openedLeft: boolean;
15 openedRight: boolean;
16 content: any;
17 cover: any;
18 left: any;
19 right: any;
20 btnsLeftWidth: number;
21 btnsRightWidth: number;
22 swiping: boolean;
23 needShowLeft: boolean;
24 needShowRight: boolean;
25 constructor(props: any);
26 componentDidMount(): void;
27 componentWillUnmount(): void;
28 onCloseSwipe: (ev: any) => void;
29 onPanStart: (e: any) => void;
30 onPanMove: (e: any) => void;
31 onPanEnd: (e: any) => void;
32 doOpenLeft: () => void;
33 doOpenRight: () => void;
34 onBtnClick(ev: any, btn: any): void;
35 _getContentEasing(value: any, limit: any): any;
36 _setStyle: (value: any) => void;
37 open: (value: any, openedLeft: any, openedRight: any) => void;
38 close: () => void;
39 renderButtons(buttons: any, ref: any): JSX.Element | null;
40 render(): JSX.Element;
41}