vite-vue3-lowcode/types/vue-router.d.ts

35 lines
992 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { type PermissionType } from '@/core/permission/modules/types';
interface Title18n {
zh_CN: string;
en_US: string;
}
declare module 'vue-router' {
interface RouteMeta extends Record<string | number | symbol, unknown> {
/** 标题 */
title: string | Title18n;
/** 当前路由是否需要权限验证 */
isAuth?: boolean;
/** 当前路由权限 */
perms?: PermissionType[];
/** 是否需要缓存 */
keepAlive?: boolean;
/** 当前路由namePath 祖先name集合 */
namePath?: string[];
/** 当前路由所在的完整路径 */
fullPath?: string;
/** 是否固定在标签栏 */
affix?: boolean;
/** 菜单图标 */
icon?: string;
/** 当前页面切换动画 */
transitionName?: string;
/** 不在菜单中显示 */
hideInMenu?: boolean;
/** 设置当前路由高亮的菜单项值为route fullPath或route name,一般用于详情页 */
activeMenu?: string;
isLink?: boolean;
}
}