components.ts 2.6 KB

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