vue-router.d.ts 927 B

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