mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-24 21:40:22 +08:00
21 lines
531 B
TypeScript
21 lines
531 B
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
import { EnumRoutePath, EnumLoginModule } from '@/enum';
|
|
|
|
/** 路由描述 */
|
|
export interface RouteMeta {
|
|
/** 路由名称 */
|
|
title?: string;
|
|
/** 页面100%视高 */
|
|
fullPage?: boolean;
|
|
/** 作为菜单 */
|
|
asMenu?: boolean;
|
|
/** 菜单和面包屑对应的图标 */
|
|
icon?: string;
|
|
}
|
|
|
|
export type CustomRoute = RouteRecordRaw & { meta: RouteMeta };
|
|
|
|
export type RoutePathKey = keyof typeof EnumRoutePath;
|
|
|
|
export type LoginModuleType = keyof typeof EnumLoginModule;
|