mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-10-17 23:44:04 +00:00

* feat(SimpleMenu): Add custom images to menu icons * style: Set image and text alignment * feat: 顶部菜单模式路由也支持图片 * feat(mixSilder): 左侧菜单混合模式也支持图片显示 * style(menu): 调整图片对齐样式 * chore(Menu): 调整图片与文字间距样式 * chore: icon和img都传值的情况下, 仅显示img
50 lines
1.3 KiB
TypeScript
50 lines
1.3 KiB
TypeScript
import { RoleEnum } from '/@/enums/roleEnum';
|
|
|
|
export {};
|
|
|
|
declare module 'vue-router' {
|
|
interface RouteMeta extends Record<string | number | symbol, unknown> {
|
|
orderNo?: number;
|
|
// title
|
|
title: string;
|
|
// dynamic router level.
|
|
dynamicLevel?: number;
|
|
// dynamic router real route path (For performance).
|
|
realPath?: string;
|
|
// Whether to ignore permissions
|
|
ignoreAuth?: boolean;
|
|
// role info
|
|
roles?: RoleEnum[];
|
|
// Whether not to cache
|
|
ignoreKeepAlive?: boolean;
|
|
// Is it fixed on tab
|
|
affix?: boolean;
|
|
// icon on tab
|
|
icon?: string;
|
|
// img on tab
|
|
img?: string;
|
|
frameSrc?: string;
|
|
// current page transition
|
|
transitionName?: string;
|
|
// Whether the route has been dynamically added
|
|
hideBreadcrumb?: boolean;
|
|
// Hide submenu
|
|
hideChildrenInMenu?: boolean;
|
|
// Carrying parameters
|
|
carryParam?: boolean;
|
|
// Used internally to mark single-level menus
|
|
single?: boolean;
|
|
// Currently active menu
|
|
currentActiveMenu?: string;
|
|
// Never show in tab
|
|
hideTab?: boolean;
|
|
// Never show in menu
|
|
hideMenu?: boolean;
|
|
isLink?: boolean;
|
|
// only build for Menu
|
|
ignoreRoute?: boolean;
|
|
// Hide path for children
|
|
hidePathForChildren?: boolean;
|
|
}
|
|
}
|