tdesign-vue-next-starter/src/interface.ts

40 lines
717 B
TypeScript
Raw Normal View History

import STYLE_CONFIG from '@/config/style';
2021-11-16 19:01:03 +08:00
export interface ResDataType {
code: number;
data: any;
2021-11-16 19:01:03 +08:00
}
2021-11-17 19:47:34 +08:00
export interface MenuRoute {
path: string;
title?: string;
2021-12-15 21:09:28 +08:00
icon?:
| string
| {
render: () => void;
};
redirect?: string;
2021-11-17 19:47:34 +08:00
children: MenuRoute[];
meta: any;
2021-11-17 19:47:34 +08:00
}
export type ModeType = 'dark' | 'light';
export type SettingType = typeof STYLE_CONFIG;
export type ClassName = { [className: string]: any } | ClassName[] | string;
export type CommonObjType = {
[key: string]: string | number;
};
export interface NotificationItem {
id: string;
content: string;
type: string;
status: boolean;
collected: boolean;
date: string;
quality: 'high' | 'low' | 'middle';
}