types.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. export const routerArrays: Array<RouteConfigs> = [
  2. {
  3. path: "/welcome",
  4. parentPath: "/",
  5. meta: {
  6. title: "message.hshome",
  7. icon: "el-icon-s-home",
  8. showLink: true
  9. }
  10. }
  11. ];
  12. export type RouteConfigs = {
  13. path?: string;
  14. parentPath?: string;
  15. meta?: {
  16. title?: string;
  17. icon?: string;
  18. showLink?: boolean;
  19. savedPosition?: boolean;
  20. };
  21. name?: string;
  22. };
  23. export type relativeStorageType = {
  24. routesInStorage: Array<RouteConfigs>;
  25. };
  26. export type tagsViewsType = {
  27. icon: string;
  28. text: string;
  29. divided: boolean;
  30. disabled: boolean;
  31. show: boolean;
  32. };
  33. export interface setType {
  34. sidebar: {
  35. opened: boolean;
  36. withoutAnimation: boolean;
  37. };
  38. device: string;
  39. fixedHeader: boolean;
  40. classes: {
  41. hideSidebar: boolean;
  42. openSidebar: boolean;
  43. withoutAnimation: boolean;
  44. mobile: boolean;
  45. };
  46. }
  47. export type childrenType = {
  48. path?: string;
  49. noShowingChildren?: boolean;
  50. children?: childrenType[];
  51. value: unknown;
  52. meta?: {
  53. icon?: string;
  54. title?: string;
  55. extraIcon?: {
  56. svg?: boolean;
  57. name?: string;
  58. };
  59. };
  60. };