2022-03-24 01:37:51 +08:00
|
|
|
import { RouteRecordName } from 'vue-router';
|
2021-11-26 10:45:04 +08:00
|
|
|
import STYLE_CONFIG from '@/config/style';
|
|
|
|
|
2021-11-16 19:01:03 +08:00
|
|
|
export interface ResDataType {
|
2021-11-26 10:45:04 +08:00
|
|
|
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;
|
|
|
|
};
|
2021-12-12 15:46:02 +08:00
|
|
|
redirect?: string;
|
2021-11-17 19:47:34 +08:00
|
|
|
children: MenuRoute[];
|
2021-12-12 01:04:13 +08:00
|
|
|
meta: any;
|
2021-11-17 19:47:34 +08:00
|
|
|
}
|
2021-11-26 10:45:04 +08:00
|
|
|
|
|
|
|
export type ModeType = 'dark' | 'light';
|
|
|
|
|
|
|
|
export type SettingType = typeof STYLE_CONFIG;
|
|
|
|
|
|
|
|
export type ClassName = { [className: string]: any } | ClassName[] | string;
|
2021-11-27 18:50:07 +08:00
|
|
|
|
|
|
|
export type CommonObjType = {
|
2021-12-06 22:53:37 +08:00
|
|
|
[key: string]: string | number;
|
|
|
|
};
|
2021-12-12 01:04:13 +08:00
|
|
|
|
|
|
|
export interface NotificationItem {
|
|
|
|
id: string;
|
|
|
|
content: string;
|
|
|
|
type: string;
|
|
|
|
status: boolean;
|
|
|
|
collected: boolean;
|
|
|
|
date: string;
|
2022-02-28 18:28:14 +08:00
|
|
|
quality: string;
|
2021-12-12 01:04:13 +08:00
|
|
|
}
|
2022-03-24 01:37:51 +08:00
|
|
|
|
|
|
|
export interface TRouterInfo {
|
|
|
|
path: string;
|
|
|
|
routeIdx?: number;
|
|
|
|
title?: string;
|
|
|
|
name?: RouteRecordName;
|
|
|
|
isAlive?: boolean;
|
|
|
|
isHome?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface TTabRouterType {
|
|
|
|
isRefreshing: boolean;
|
|
|
|
tabRouterList: Array<TRouterInfo>;
|
|
|
|
}
|