route.d.ts 624 B

1234567891011121314151617181920212223242526
  1. import 'vue-router'
  2. declare module 'vue-router'{
  3. import type { RouteRecordRaw } from 'vue-router'
  4. interface RouteMeta {
  5. title?: string
  6. icon?: string
  7. hideInMenu?: boolean
  8. parentKeys?: string[]
  9. isIframe?: boolean
  10. url?: string
  11. hideInBreadcrumb?: boolean
  12. hideChildrenInMenu?: boolean
  13. keepAlive?: boolean
  14. target?: '_blank' | '_self' | '_parent'
  15. affix?: boolean
  16. id?: string | number
  17. parentId?: string | number | null
  18. access?: (string | number)[]
  19. locale?: string
  20. parentName?: string
  21. parentComps?: RouteRecordRaw['component'][]
  22. originPath?: string
  23. }
  24. }