123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import type { RouteRecordRaw } from 'vue-router'
- import { defineComponent } from 'vue'
- declare module 'vue-router' {
- interface RouteMeta extends Record<string | number | symbol, unknown> {
- hidden?: boolean
- alwaysShow?: boolean
- title?: string
- icon?: string
- noCache?: boolean
- breadcrumb?: boolean
- affix?: boolean
- activeMenu?: string
- noTagsView?: boolean
- followAuth?: string
- canTo?: boolean
- }
- }
- type Component<T = any> =
- | ReturnType<typeof defineComponent>
- | (() => Promise<typeof import('*.vue')>)
- | (() => Promise<T>)
- declare global {
- interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
- name: string
- meta: RouteMeta
- component?: Component | string
- children?: AppRouteRecordRaw[]
- props?: Recordable
- fullPath?: string
- keepAlive?: boolean
- }
- interface AppCustomRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
- icon: any
- name: string
- meta: RouteMeta
- component: string
- componentName?: string
- path: string
- redirect: string
- children?: AppCustomRouteRecordRaw[]
- keepAlive?: boolean
- visible?: boolean
- parentId?: number
- alwaysShow?: boolean
- }
- }
|