project init
This commit is contained in:
30
components/swipe-cell/type.d.ts
vendored
Normal file
30
components/swipe-cell/type.d.ts
vendored
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user