Blame view

types/vue-router.d.ts 1.22 KB
1
2
import { RoleEnum } from '/@/enums/roleEnum';
Vben authored
3
4
5
6
export {};

declare module 'vue-router' {
  interface RouteMeta extends Record<string | number | symbol, unknown> {
7
    orderNo?: number;
Vben authored
8
9
    // title
    title: string;
10
11
12
13
    // dynamic router level.
    dynamicLevel?: number;
    // dynamic router real route path (For performance).
    realPath?: string;
Vben authored
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
    // 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;
    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;
42
    // only build for Menu
43
    ignoreRoute?: boolean;
44
45
    // Hide path for children
    hidePathForChildren?: boolean;
Vben authored
46
47
  }
}