Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-23 04:19:20 +08:00
v3-admin-vite/types/vue-router.d.ts

58 lines
2.1 KiB
TypeScript
Raw Normal View History

import type * as ElementPlusIconsVue from "@element-plus/icons-vue"
import type { SvgName } from "~virtual/svg-component"
2022-10-18 15:07:42 +08:00
import "vue-router"
2024-11-21 19:52:07 +08:00
export {}
type ElementPlusIconsName = keyof typeof ElementPlusIconsVue
declare module "vue-router" {
interface RouteMeta {
/**
* @description
*/
title?: string
/**
* @description svg src/common/assets/icons
*/
svgIcon?: SvgName
/**
* @description 使 Element Plus Icon svgIcon svgIcon
*/
elIcon?: ElementPlusIconsName
/**
* @description false true
*/
hidden?: boolean
/**
* @description
*/
roles?: string[]
/**
* @description true false
*/
breadcrumb?: boolean
/**
* @description false true tags-view
*/
affix?: boolean
/**
2024-11-26 17:20:15 +08:00
* @description children 1
* @description 1
* @description alwaysShow: true
*/
alwaysShow?: boolean
/**
* @description 示例: activeMenu: "/xxx/xxx"
2024-11-26 17:20:15 +08:00
* @description activeMenu
* @description 使 hidden: true
*/
activeMenu?: string
2023-02-22 15:53:04 +08:00
/**
* @description
* @description false true Name
2023-02-22 15:53:04 +08:00
*/
keepAlive?: boolean
}
}