project init

This commit is contained in:
limqhz
2022-11-11 21:51:57 +08:00
parent e9e20765f2
commit 82dbb842ba
68 changed files with 2771 additions and 43 deletions

30
components/swipe-cell/type.d.ts vendored Normal file
View File

@@ -0,0 +1,30 @@
export interface TdSwipeCellProps {
disabled?: {
type: BooleanConstructor;
value?: boolean;
required?: boolean;
};
left?: {
type: ArrayConstructor;
value?: Array<SwipeActionItem>;
required?: boolean;
};
opened?: {
type: BooleanConstructor;
optionalTypes: Array<ArrayConstructor>;
value?: boolean | Array<boolean>;
required?: boolean;
};
right?: {
type: ArrayConstructor;
value?: Array<SwipeActionItem>;
required?: boolean;
};
}
export interface SwipeActionItem {
text: string;
className?: string;
style?: string;
onClick?: () => void;
[key: string]: any;
}