vue-router.d.ts 1.2 KB

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