components.ts 3.4 KB

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