mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 13:46:30 +08:00
55 lines
999 B
TypeScript
55 lines
999 B
TypeScript
import { RouteRecordName } from 'vue-router';
|
|
import STYLE_CONFIG from '@/config/style';
|
|
|
|
export interface ResDataType {
|
|
code: number;
|
|
data: any;
|
|
}
|
|
|
|
export interface MenuRoute {
|
|
path: string;
|
|
title?: string;
|
|
icon?:
|
|
| string
|
|
| {
|
|
render: () => void;
|
|
};
|
|
redirect?: string;
|
|
children: MenuRoute[];
|
|
meta: any;
|
|
}
|
|
|
|
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: string;
|
|
}
|
|
|
|
export interface TRouterInfo {
|
|
path: string;
|
|
routeIdx?: number;
|
|
title?: string;
|
|
name?: RouteRecordName;
|
|
isAlive?: boolean;
|
|
isHome?: boolean;
|
|
}
|
|
|
|
export interface TTabRouterType {
|
|
isRefreshing: boolean;
|
|
tabRouterList: Array<TRouterInfo>;
|
|
}
|