components.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. import { $t } from "/@/plugins/i18n";
  2. import type { RouteConfigsTable } from "/#/index";
  3. const componentsRouter: RouteConfigsTable = {
  4. path: "/components",
  5. redirect: "/components/video",
  6. meta: {
  7. icon: "menu",
  8. title: $t("menus.hscomponents"),
  9. rank: 5
  10. },
  11. children: [
  12. {
  13. path: "/components/video",
  14. name: "Video",
  15. component: () => import("/@/views/components/video/index.vue"),
  16. meta: {
  17. title: $t("menus.hsvideo")
  18. }
  19. },
  20. {
  21. path: "/components/map",
  22. name: "Map",
  23. component: () => import("/@/views/components/map/index.vue"),
  24. meta: {
  25. title: $t("menus.hsmap"),
  26. keepAlive: true,
  27. transition: {
  28. name: "fade"
  29. }
  30. }
  31. },
  32. {
  33. path: "/components/draggable",
  34. name: "Draggable",
  35. component: () => import("/@/views/components/draggable/index.vue"),
  36. meta: {
  37. title: $t("menus.hsdraggable"),
  38. transition: {
  39. enterTransition: "animate__zoomIn",
  40. leaveTransition: "animate__zoomOut"
  41. }
  42. }
  43. },
  44. {
  45. path: "/components/splitPane",
  46. name: "SplitPane",
  47. component: () => import("/@/views/components/split-pane/index.vue"),
  48. meta: {
  49. title: $t("menus.hssplitPane"),
  50. extraIcon: {
  51. svg: true,
  52. name: "team-iconxinpinrenqiwang"
  53. }
  54. }
  55. },
  56. {
  57. path: "/components/button",
  58. name: "Button",
  59. component: () => import("/@/views/components/button/index.vue"),
  60. meta: {
  61. title: $t("menus.hsbutton")
  62. }
  63. },
  64. {
  65. path: "/components/cropping",
  66. name: "Cropping",
  67. component: () => import("/@/views/components/cropping/index.vue"),
  68. meta: {
  69. title: $t("menus.hscropping")
  70. }
  71. },
  72. {
  73. path: "/components/countTo",
  74. name: "CountTo",
  75. component: () => import("/@/views/components/count-to/index.vue"),
  76. meta: {
  77. title: $t("menus.hscountTo")
  78. }
  79. },
  80. {
  81. path: "/components/selector",
  82. name: "Selector",
  83. component: () => import("/@/views/components/selector/index.vue"),
  84. meta: {
  85. title: $t("menus.hsselector")
  86. }
  87. },
  88. {
  89. path: "/components/seamlessScroll",
  90. name: "SeamlessScroll",
  91. component: () => import("/@/views/components/seamless-scroll/index.vue"),
  92. meta: {
  93. title: $t("menus.hsseamless")
  94. }
  95. },
  96. {
  97. path: "/components/contextmenu",
  98. name: "ContextMenu",
  99. component: () => import("/@/views/components/contextmenu/index.vue"),
  100. meta: {
  101. title: $t("menus.hscontextmenu")
  102. }
  103. },
  104. {
  105. path: "/components/typeit",
  106. name: "Typeit",
  107. component: () => import("/@/views/components/typeit/index.vue"),
  108. meta: {
  109. title: $t("menus.hstypeit")
  110. }
  111. },
  112. {
  113. path: "/components/json-editor",
  114. name: "JsonEditor",
  115. component: () => import("/@/views/components/json-editor/index.vue"),
  116. meta: {
  117. title: $t("menus.hsjsoneditor")
  118. }
  119. }
  120. ]
  121. };
  122. export default componentsRouter;