components.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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. transition: {
  23. enterTransition: "animate__fadeInLeft",
  24. leaveTransition: "animate__fadeOutRight"
  25. }
  26. }
  27. },
  28. {
  29. path: "/components/video",
  30. name: "Video",
  31. component: () => import("@/views/components/video/index.vue"),
  32. meta: {
  33. title: $t("menus.hsvideo")
  34. }
  35. },
  36. {
  37. path: "/components/map",
  38. name: "Map",
  39. component: () => import("@/views/components/map/index.vue"),
  40. meta: {
  41. title: $t("menus.hsmap"),
  42. keepAlive: true,
  43. transition: {
  44. name: "fade"
  45. }
  46. }
  47. },
  48. {
  49. path: "/components/draggable",
  50. name: "Draggable",
  51. component: () => import("@/views/components/draggable/index.vue"),
  52. meta: {
  53. title: $t("menus.hsdraggable"),
  54. transition: {
  55. enterTransition: "animate__zoomIn",
  56. leaveTransition: "animate__zoomOut"
  57. }
  58. }
  59. },
  60. {
  61. path: "/components/splitPane",
  62. name: "SplitPane",
  63. component: () => import("@/views/components/split-pane/index.vue"),
  64. meta: {
  65. title: $t("menus.hssplitPane")
  66. }
  67. },
  68. {
  69. path: "/components/button",
  70. name: "Button",
  71. component: () => import("@/views/components/button/index.vue"),
  72. meta: {
  73. title: $t("menus.hsbutton")
  74. }
  75. },
  76. {
  77. path: "/components/cropping",
  78. name: "Cropping",
  79. component: () => import("@/views/components/cropping/index.vue"),
  80. meta: {
  81. title: $t("menus.hscropping")
  82. }
  83. },
  84. {
  85. path: "/components/countTo",
  86. name: "CountTo",
  87. component: () => import("@/views/components/count-to/index.vue"),
  88. meta: {
  89. title: $t("menus.hscountTo")
  90. }
  91. },
  92. {
  93. path: "/components/selector",
  94. name: "Selector",
  95. component: () => import("@/views/components/selector/index.vue"),
  96. meta: {
  97. title: $t("menus.hsselector")
  98. }
  99. },
  100. {
  101. path: "/components/seamlessScroll",
  102. name: "SeamlessScroll",
  103. component: () => import("@/views/components/seamless-scroll/index.vue"),
  104. meta: {
  105. title: $t("menus.hsseamless")
  106. }
  107. },
  108. {
  109. path: "/components/contextmenu",
  110. name: "ContextMenu",
  111. component: () => import("@/views/components/contextmenu/index.vue"),
  112. meta: {
  113. title: $t("menus.hscontextmenu")
  114. }
  115. },
  116. {
  117. path: "/components/typeit",
  118. name: "Typeit",
  119. component: () => import("@/views/components/typeit/index.vue"),
  120. meta: {
  121. title: $t("menus.hstypeit")
  122. }
  123. },
  124. {
  125. path: "/components/json-editor",
  126. name: "JsonEditor",
  127. component: () => import("@/views/components/json-editor/index.vue"),
  128. meta: {
  129. title: $t("menus.hsjsoneditor")
  130. }
  131. },
  132. {
  133. path: "/components/danmaku",
  134. name: "Danmaku",
  135. component: () => import("@/views/components/danmaku/index.vue"),
  136. meta: {
  137. title: $t("menus.hsdanmaku")
  138. }
  139. }
  140. ]
  141. } as RouteConfigsTable;