vue-router.d.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * @Author: sjl
  3. * @Date: 2023-05-23 19:05:26
  4. * @Descripttion:
  5. */
  6. export {};
  7. declare module 'vue-router' {
  8. interface RouteMeta extends Record<string | number | symbol, unknown> {
  9. orderNo?: number;
  10. // title
  11. title: string;
  12. // menuSystem: string;
  13. // menuOut: string;
  14. // Whether to ignore permissions
  15. ignoreAuth?: boolean;
  16. // role info
  17. roles?: RoleEnum[];
  18. // Whether not to cache
  19. ignoreKeepAlive?: boolean;
  20. // Is it fixed on tab
  21. affix?: boolean;
  22. // icon on tab
  23. icon?: 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. }