Files
Auto_Bangumi/types/components.ts
2023-05-28 14:58:21 +08:00

19 lines
341 B
TypeScript

export interface SelectItem {
id: number;
label?: string;
value: string;
disabled?: boolean;
}
export interface AbSettingProps {
label: string;
type: 'input' | 'switch' | 'select' | 'dynamic-tags';
css?: string;
prop?: any;
bottomLine?: boolean;
}
export type SettingItem<T> = AbSettingProps & {
configKey: keyof T;
};