vue-router.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { RoleEnum } from '@/enums/roleEnum';
  2. export {};
  3. declare module 'vue-router' {
  4. interface RouteMeta extends Record<string | number | symbol, unknown> {
  5. orderNo?: number;
  6. // title
  7. title: string;
  8. // dynamic router level.
  9. dynamicLevel?: number;
  10. // dynamic router real route path (For performance).
  11. realPath?: string;
  12. // Whether to ignore permissions
  13. ignoreAuth?: boolean;
  14. // role info
  15. roles?: RoleEnum[];
  16. // Whether not to cache
  17. ignoreKeepAlive?: boolean;
  18. // Is it fixed on tab
  19. affix?: boolean;
  20. // icon on tab
  21. icon?: string;
  22. // img on tab
  23. img?: string;
  24. frameSrc?: string;
  25. // current page transition
  26. transitionName?: string;
  27. // Whether the route has been dynamically added
  28. hideBreadcrumb?: boolean;
  29. // Hide submenu
  30. hideChildrenInMenu?: boolean;
  31. // Carrying parameters
  32. carryParam?: boolean;
  33. // Used internally to mark single-level menus
  34. single?: boolean;
  35. // Currently active menu
  36. currentActiveMenu?: string;
  37. // Never show in tab
  38. hideTab?: boolean;
  39. // Never show in menu
  40. hideMenu?: boolean;
  41. isLink?: boolean;
  42. // only build for Menu
  43. ignoreRoute?: boolean;
  44. // Hide path for children
  45. hidePathForChildren?: boolean;
  46. }
  47. }