vue-router.d.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. frameSrc?: string;
  23. // current page transition
  24. transitionName?: string;
  25. // Whether the route has been dynamically added
  26. hideBreadcrumb?: boolean;
  27. // Hide submenu
  28. hideChildrenInMenu?: boolean;
  29. // Carrying parameters
  30. carryParam?: boolean;
  31. // Used internally to mark single-level menus
  32. single?: boolean;
  33. // Currently active menu
  34. currentActiveMenu?: string;
  35. // Never show in tab
  36. hideTab?: boolean;
  37. // Never show in menu
  38. hideMenu?: boolean;
  39. isLink?: boolean;
  40. // only build for Menu
  41. ignoreRoute?: boolean;
  42. // Hide path for children
  43. hidePathForChildren?: boolean;
  44. }
  45. }