router.d.ts 735 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { RouteRecordRaw } from 'vue-router';
  2. declare module 'vue-router' {
  3. declare type RouteOption = {
  4. hidden?: boolean;
  5. permissions?: string[];
  6. roles?: string[];
  7. component?: any;
  8. children?: RouteOption[];
  9. alwaysShow?: boolean;
  10. parentPath?: string;
  11. meta?: {
  12. title: string;
  13. icon: string;
  14. };
  15. query?: string;
  16. } & RouteRecordRaw;
  17. declare interface _RouteLocationBase {
  18. children?: RouteOption[];
  19. }
  20. declare interface RouteLocationOptions {
  21. fullPath?: string;
  22. }
  23. declare interface TagView extends Partial<_RouteLocationBase> {
  24. title?: string;
  25. meta?: {
  26. link?: string;
  27. title?: string;
  28. affix?: boolean;
  29. noCache?: boolean;
  30. };
  31. }
  32. }