refactor: ♻️ 调整类型声明文件路径至 src/typingselement-plus 保持一致

This commit is contained in:
hxr
2023-11-26 23:58:21 +08:00
parent bd4e2d62ac
commit b4ff6fcd38
8 changed files with 3 additions and 3 deletions

22
src/typings/router.d.ts vendored Normal file
View File

@@ -0,0 +1,22 @@
import "vue-router";
declare module "vue-router" {
// https://router.vuejs.org/zh/guide/advanced/meta.html#typescript
// 可以通过扩展 RouteMeta 接口来输入 meta 字段
interface RouteMeta {
/** 菜单名称 */
title?: string;
/** 菜单图标 */
icon?: string;
/** 菜单是否隐藏 */
hidden?: boolean;
/** 是否固定页签 */
affix?: boolean;
/** 是否缓存页面 */
keepAlive?: boolean;
/** 是否在面包屑上隐藏 */
breadcrumb?: boolean;
/** 拥有菜单权限的角色编码集合 */
roles?: string[];
}
}