UNPKG

rtaro-ui

Version:
35 lines (20 loc) 814 B
import { MouseEvent, ComponentClass } from 'react' import { CommonEventFunction, CommonEvent } from '@rtarojs/components/types/common' import AtComponent from './base' export interface SwipeActionOption { text: string style?: object | string className?: object | string | string[] onPress?: (item: SwipeActionOption, index: number, event: CommonEvent) => void } export interface AtSwipeActionProps extends AtComponent { isOpened?: boolean disabled?: boolean onClick?: (item: SwipeActionOption, index: number, event: CommonEvent) => void onOpened?: CommonEventFunction onClosed?: CommonEventFunction autoClose?: boolean options?: SwipeActionOption[] } declare const AtSwipeAction: ComponentClass<AtSwipeActionProps> export default AtSwipeAction