vue-vben-admin/types/vue-router.d.ts

46 lines
1.2 KiB
TypeScript
Raw Normal View History

export {}
2021-06-19 22:38:29 +08:00
declare module 'vue-router' {
interface RouteMeta extends Record<string | number | symbol, unknown> {
orderNo?: number
2021-06-19 22:38:29 +08:00
// title
title: string
// dynamic router level.
dynamicLevel?: number
// dynamic router real route path (For performance).
realPath?: string
2021-06-19 22:38:29 +08:00
// Whether to ignore permissions
ignoreAuth?: boolean
2021-06-19 22:38:29 +08:00
// role info
roles?: RoleEnum[]
2021-06-19 22:38:29 +08:00
// Whether not to cache
ignoreKeepAlive?: boolean
2021-06-19 22:38:29 +08:00
// Is it fixed on tab
affix?: boolean
2021-06-19 22:38:29 +08:00
// icon on tab
icon?: string
frameSrc?: string
2021-06-19 22:38:29 +08:00
// current page transition
transitionName?: string
2021-06-19 22:38:29 +08:00
// Whether the route has been dynamically added
hideBreadcrumb?: boolean
2021-06-19 22:38:29 +08:00
// Hide submenu
hideChildrenInMenu?: boolean
2021-06-19 22:38:29 +08:00
// Carrying parameters
carryParam?: boolean
2021-06-19 22:38:29 +08:00
// Used internally to mark single-level menus
single?: boolean
2021-06-19 22:38:29 +08:00
// Currently active menu
currentActiveMenu?: string
2021-06-19 22:38:29 +08:00
// Never show in tab
hideTab?: boolean
2021-06-19 22:38:29 +08:00
// Never show in menu
hideMenu?: boolean
isLink?: boolean
// only build for Menu
ignoreRoute?: boolean
// Hide path for children
hidePathForChildren?: boolean
2021-06-19 22:38:29 +08:00
}
}