rtaro-ui
Version:
UI KIT for Taro
35 lines (20 loc) • 814 B
TypeScript
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