1
0

comp.ts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. export default {
  4. layout: {
  5. path: '/comp',
  6. name: 'Comp',
  7. component: PAGE_LAYOUT_COMPONENT,
  8. redirect: '/comp/basic',
  9. meta: {
  10. icon: 'ant-design:table-outlined',
  11. title: '组件',
  12. },
  13. },
  14. routes: [
  15. {
  16. path: '/basic',
  17. name: 'BasicDemo',
  18. component: () => import('/@/views/demo/comp/button/index.vue'),
  19. meta: {
  20. title: '基础组件',
  21. },
  22. },
  23. {
  24. path: '/transition',
  25. name: 'transitionDemo',
  26. component: () => import('/@/views/demo/comp/transition/index.vue'),
  27. meta: {
  28. title: '动画组件',
  29. },
  30. },
  31. {
  32. path: '/countTo',
  33. name: 'CountTo',
  34. component: () => import('/@/views/demo/comp/count-to/index.vue'),
  35. meta: {
  36. title: '数字动画',
  37. },
  38. },
  39. {
  40. path: '/scroll',
  41. name: 'ScrollDemo',
  42. redirect: '/comp/scroll/basic',
  43. meta: {
  44. title: '滚动组件',
  45. },
  46. children: [
  47. {
  48. path: 'basic',
  49. name: 'BasicScrollDemo',
  50. component: () => import('/@/views/demo/comp/scroll/index.vue'),
  51. meta: {
  52. title: '基础滚动',
  53. },
  54. },
  55. {
  56. path: 'action',
  57. name: 'ActionScrollDemo',
  58. component: () => import('/@/views/demo/comp/scroll/Action.vue'),
  59. meta: {
  60. title: '滚动函数',
  61. },
  62. },
  63. {
  64. path: 'virtualScroll',
  65. name: 'VirtualScrollDemo',
  66. component: () => import('/@/views/demo/comp/scroll/VirtualScroll.vue'),
  67. meta: {
  68. title: '虚拟滚动',
  69. },
  70. },
  71. ],
  72. },
  73. {
  74. path: '/modal',
  75. name: 'ModalDemo',
  76. component: () => import('/@/views/demo/comp/modal/index.vue'),
  77. meta: {
  78. title: '弹窗扩展',
  79. },
  80. },
  81. {
  82. path: '/drawer',
  83. name: 'DrawerDemo',
  84. component: () => import('/@/views/demo/comp/drawer/index.vue'),
  85. meta: {
  86. title: '抽屉扩展',
  87. },
  88. },
  89. {
  90. path: '/desc',
  91. name: 'DescDemo',
  92. component: () => import('/@/views/demo/comp/desc/index.vue'),
  93. meta: {
  94. title: '详情组件',
  95. },
  96. },
  97. {
  98. path: '/lazy',
  99. name: 'lazyDemo',
  100. redirect: '/comp/lazy/basic',
  101. meta: {
  102. title: '懒加载组件',
  103. },
  104. children: [
  105. {
  106. path: 'basic',
  107. name: 'BasicLazyDemo',
  108. component: () => import('/@/views/demo/comp/lazy/index.vue'),
  109. meta: {
  110. title: '基础示例',
  111. },
  112. },
  113. {
  114. path: 'transition',
  115. name: 'BasicTransitionDemo',
  116. component: () => import('/@/views/demo/comp/lazy/Transition.vue'),
  117. meta: {
  118. title: '动画效果',
  119. },
  120. },
  121. ],
  122. },
  123. {
  124. path: '/verify',
  125. name: 'VerifyDemo',
  126. redirect: '/comp/verify/drag',
  127. meta: {
  128. title: '验证组件',
  129. },
  130. children: [
  131. {
  132. path: 'drag',
  133. name: 'VerifyDragDemo',
  134. component: () => import('/@/views/demo/comp/verify/index.vue'),
  135. meta: {
  136. title: '拖拽校验',
  137. },
  138. },
  139. {
  140. path: 'rotate',
  141. name: 'VerifyRotateDemo',
  142. component: () => import('/@/views/demo/comp/verify/Rotate.vue'),
  143. meta: {
  144. title: '图片还原',
  145. },
  146. },
  147. ],
  148. },
  149. //
  150. {
  151. path: '/qrcode',
  152. name: 'QrCodeDemo',
  153. component: () => import('/@/views/demo/comp/qrcode/index.vue'),
  154. meta: {
  155. title: '二维码组件',
  156. },
  157. },
  158. {
  159. path: '/strength-meter',
  160. name: 'StrengthMeterDemo',
  161. component: () => import('/@/views/demo/comp/strength-meter/index.vue'),
  162. meta: {
  163. title: '密码强度组件',
  164. },
  165. },
  166. ],
  167. } as AppRouteModule;