router.d.ts 784 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. parentPath?: string;
  19. }
  20. interface _RouteLocationBase {
  21. children?: _RouteRecordBase[];
  22. path?: string;
  23. title?: string;
  24. }
  25. interface TagView {
  26. fullPath?: string;
  27. name?: string;
  28. path?: string;
  29. title?: string;
  30. meta?: RouteMeta;
  31. query?: LocationQuery;
  32. }
  33. }
  34. export {};