任务明细页面

This commit is contained in:
limqhz
2022-11-25 16:54:11 +08:00
parent 0becbacd2d
commit d92a31a38e
26 changed files with 417 additions and 112 deletions

37
components/switch/type.d.ts vendored Normal file
View File

@@ -0,0 +1,37 @@
export interface TdSwitchProps {
colors?: {
type: ArrayConstructor;
value?: string[];
};
customValue?: {
type: ArrayConstructor;
value?: Array<SwitchValue>;
};
disabled?: {
type: BooleanConstructor;
value?: boolean;
};
label?: {
type: StringConstructor;
value?: string;
};
loading?: {
type: BooleanConstructor;
value?: boolean;
};
size?: {
type: StringConstructor;
value?: 'small' | 'medium' | 'large';
};
value?: {
type: BooleanConstructor;
optionalTypes: Array<NumberConstructor | StringConstructor>;
value?: SwitchValue;
};
defaultValue?: {
type: BooleanConstructor;
optionalTypes: Array<NumberConstructor | StringConstructor>;
value?: SwitchValue;
};
}
export declare type SwitchValue = string | number | boolean;