vue-router.d.ts 1.0 KB

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