vue-router.d.ts 1.2 KB

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