mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-17 17:26:38 +08:00
41 lines
953 B
TypeScript
41 lines
953 B
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
import type { MenuOption } from 'naive-ui';
|
|
import { EnumRoutePath, EnumLoginModule } from '@/enum';
|
|
|
|
/** 路由描述 */
|
|
interface RouteMeta {
|
|
/** 路由名称 */
|
|
title?: string;
|
|
/** 缓存页面 */
|
|
keepAlive?: boolean;
|
|
/** 页面100%视高 */
|
|
fullPage?: boolean;
|
|
/** 不作为菜单 */
|
|
isNotMenu?: boolean;
|
|
/** 菜单和面包屑对应的图标 */
|
|
icon?: string;
|
|
/** 路由作为菜单时的排序 */
|
|
order?: number;
|
|
}
|
|
|
|
/** 路由配置 */
|
|
export type CustomRoute = RouteRecordRaw & { meta: RouteMeta };
|
|
|
|
/** 路由路径 */
|
|
export type RoutePathKey = keyof typeof EnumRoutePath;
|
|
|
|
/** 菜单项配置 */
|
|
export type GlobalMenuOption = MenuOption & {
|
|
routeName: string;
|
|
routePath: string;
|
|
};
|
|
|
|
/** 登录模块 */
|
|
export type LoginModuleType = keyof typeof EnumLoginModule;
|
|
|
|
/** npm依赖包版本信息 */
|
|
export interface VersionInfo {
|
|
name: string;
|
|
version: string;
|
|
}
|