123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- import { type RouteComponent, type RouteLocationNormalized } from "vue-router";
- declare global {
- interface ToRouteType extends RouteLocationNormalized {
- meta: CustomizeRouteMeta;
- }
-
- interface CustomizeRouteMeta {
-
- title: string;
-
- icon?: string | FunctionalComponent | IconifyIcon;
-
- extraIcon?: string | FunctionalComponent | IconifyIcon;
-
- showLink?: boolean;
-
- showParent?: boolean;
-
- roles?: Array<string>;
-
- auths?: Array<string>;
-
- keepAlive?: boolean;
-
- frameSrc?: string;
-
- frameLoading?: boolean;
-
- transition?: {
-
- name?: string;
-
- enterTransition?: string;
-
- leaveTransition?: string;
- };
-
- hiddenTag?: boolean;
-
- dynamicLevel?: number;
-
- activePath?: string;
- }
-
- interface RouteChildrenConfigsTable {
-
- path: string;
-
- name?: string;
-
- redirect?: string;
-
- component?: RouteComponent;
- meta?: CustomizeRouteMeta;
-
- children?: Array<RouteChildrenConfigsTable>;
- }
-
- interface RouteConfigsTable {
-
- path: string;
-
- name?: string;
-
- component?: RouteComponent;
-
- redirect?: string;
- meta?: {
-
- title: string;
-
- icon?: string | FunctionalComponent | IconifyIcon;
-
- showLink?: boolean;
-
- rank?: number;
- };
-
- children?: Array<RouteChildrenConfigsTable>;
- }
- }
- declare module "vue-router" {
- interface RouteMeta extends CustomizeRouteMeta {}
- }
|