router.d.ts 727 B

12345678910111213141516171819202122232425262728293031323334
  1. import { LocationQuery, type RouteMeta as VRouteMeta } from 'vue-router';
  2. declare module 'vue-router' {
  3. interface RouteMeta extends VRouteMeta {
  4. link?: string;
  5. title?: string;
  6. affix?: boolean;
  7. noCache?: boolean;
  8. activeMenu?: string;
  9. icon?: string;
  10. breadcrumb?: boolean;
  11. }
  12. interface _RouteRecordBase {
  13. hidden?: boolean | string | number;
  14. permissions?: string[];
  15. roles?: string[];
  16. alwaysShow?: boolean;
  17. query?: string;
  18. }
  19. interface _RouteLocationBase {
  20. children?: _RouteRecordBase[];
  21. path?: string;
  22. }
  23. interface TagView {
  24. fullPath?: string;
  25. name?: string;
  26. path?: string;
  27. title?: string;
  28. meta?: RouteMeta;
  29. query?: LocationQuery;
  30. }
  31. }