tdesign-miniprogram
Version:
tdesign-miniprogram
31 lines (30 loc) • 646 B
TypeScript
export interface TdSwipeCellProps {
disabled?: {
type: BooleanConstructor;
value?: boolean;
};
left?: {
type: ArrayConstructor;
value?: Array<SwipeActionItem>;
};
opened?: {
type: null;
value?: boolean | Array<boolean>;
};
right?: {
type: ArrayConstructor;
value?: Array<SwipeActionItem>;
};
style?: {
type: StringConstructor;
value?: string;
};
}
export interface SwipeActionItem {
text?: string;
icon?: string | object;
className?: string;
style?: string;
onClick?: () => void;
[key: string]: any;
}