vue-router.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. // Whether not to cache
  14. ignoreKeepAlive?: boolean;
  15. // Is it fixed on tab
  16. affix?: boolean;
  17. // icon on tab
  18. icon?: string;
  19. frameSrc?: string;
  20. // current page transition
  21. transitionName?: string;
  22. // Whether the route has been dynamically added
  23. hideBreadcrumb?: boolean;
  24. // Hide submenu
  25. hideChildrenInMenu?: boolean;
  26. // Carrying parameters
  27. carryParam?: boolean;
  28. // Used internally to mark single-level menus
  29. single?: boolean;
  30. // Currently active menu
  31. currentActiveMenu?: string;
  32. // Never show in tab
  33. hideTab?: boolean;
  34. // Never show in menu
  35. hideMenu?: boolean;
  36. isLink?: boolean;
  37. // only build for Menu
  38. ignoreRoute?: boolean;
  39. // Hide path for children
  40. hidePathForChildren?: boolean;
  41. }
  42. }