29 lines
656 B
TypeScript
29 lines
656 B
TypeScript
import type { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
import type { MenuOption } from 'naive-ui';
|
|
import { EnumLoginModule } from '@/enum';
|
|
|
|
/** 菜单项配置 */
|
|
export type GlobalMenuOption = MenuOption & {
|
|
routeName: string;
|
|
routePath: string;
|
|
};
|
|
|
|
/** 多页签 */
|
|
export interface MultiTab {
|
|
routes: MultiTabRoute[];
|
|
activeRoute: string;
|
|
}
|
|
export type MultiTabRoute = Partial<RouteLocationNormalizedLoaded> & {
|
|
path: string;
|
|
fullPath: string;
|
|
};
|
|
|
|
/** 登录模块 */
|
|
export type LoginModuleType = keyof typeof EnumLoginModule;
|
|
|
|
/** npm依赖包版本信息 */
|
|
export interface VersionInfo {
|
|
name: string;
|
|
version: string;
|
|
}
|