antd-mobile-alita
Version:
基于 React 的移动设计规范实现
24 lines (23 loc) • 492 B
TypeScript
/**
* T for web or react native
*/
export interface SwipeActionPropsType<T> {
/** whether button is disabled*/
autoClose?: boolean;
disabled?: boolean;
title?: string;
left?: Array<{
text: string;
onPress?: () => void;
style?: T;
className?: string;
}>;
right?: Array<{
text: string;
onPress?: () => void;
style?: T;
className?: string;
}>;
onOpen?: () => void;
onClose?: () => void;
}