1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import { IBaseProps } from '../_util/base';
- interface SwipeButton {
- text: string;
- width?: number;
- bgColor?: string;
- color?: string;
- confirmType?: '' | 'move' | 'tap';
- confirmText?: string;
- }
- interface SwipeData {
- direction: 'right' | 'left' | '';
- btnIdx?: number;
- swiped?: boolean;
- }
- export interface ISwipeActionProps extends IBaseProps {
-
- leftButtons: SwipeButton[];
-
- rightButtons: SwipeButton[];
-
- damping: number | string;
-
- disabled: boolean;
-
- swiped: '' | 'left' | 'right' | boolean;
-
- defaultSwiped: '' | 'left' | 'right';
-
- elasticity: boolean;
-
- onSwipeEnd: (data: SwipeData, e: Record<string, any>) => void;
-
- onSwipeStart: (data: SwipeData, e: Record<string, any>) => void;
-
- onButtonTap: (data: SwipeData, e: Record<string, any>) => void;
- }
- export declare const SwipeActionDefaultProps: Partial<ISwipeActionProps>;
- export {};
|