You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8 KiB

2 years ago
import { RoleEnum } from '@/enums/roleEnum'
export {}
declare module 'vue-router' {
interface RouteMeta extends Record<string | number | symbol, unknown> {
orderNo?: number
2 years ago
// 路由title 一般必填
2 years ago
title: string
2 years ago
// 动态路由可打开Tab页数
2 years ago
dynamicLevel?: number
2 years ago
// 动态路由的实际Path, 即去除路由的动态部分;
2 years ago
realPath?: string
2 years ago
// 是否忽略权限,只在权限模式为Role的时候有效
2 years ago
ignoreAuth?: boolean
2 years ago
// 可以访问的角色,只在权限模式为Role的时候有效
2 years ago
roles?: RoleEnum[]
2 years ago
// 是否忽略KeepAlive缓存
2 years ago
ignoreKeepAlive?: boolean
2 years ago
// 是否固定标签
2 years ago
affix?: boolean
2 years ago
// 图标,也是菜单图标
2 years ago
icon?: string
2 years ago
// 内嵌iframe的地址
2 years ago
frameSrc?: string
2 years ago
// 指定该路由切换的动画名
2 years ago
transitionName?: string
2 years ago
// 隐藏该路由在面包屑上面的显示
2 years ago
hideBreadcrumb?: boolean
2 years ago
// 如果该路由会携带参数,且需要在tab页上面显示。则需要设置为true
carryParam?: boolean
// 隐藏所有子菜单
2 years ago
hideChildrenInMenu?: boolean
// Carrying parameters
carryParam?: boolean
// Used internally to mark single-level menus
single?: boolean
2 years ago
// 当前激活的菜单。用于配置详情页时左侧激活的菜单路径
2 years ago
currentActiveMenu?: string
2 years ago
// 当前路由不再标签页显示
2 years ago
hideTab?: boolean
2 years ago
// 当前路由不再菜单显示
2 years ago
hideMenu?: boolean
2 years ago
// 菜单排序,只对第一级有效
orderNo?: number
// 忽略路由。用于在ROUTE_MAPPING以及BACK权限模式下,生成对应的菜单而忽略路由。2.5.3以上版本有效
2 years ago
ignoreRoute?: boolean
2 years ago
// 是否在子级菜单的完整path中忽略本级path。2.5.3以上版本有效
2 years ago
hidePathForChildren?: boolean
}
}