comp.ts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. import type { MenuModule } from '/@/router/types';
  2. import { t } from '/@/hooks/web/useI18n';
  3. const menu: MenuModule = {
  4. orderNo: 30,
  5. menu: {
  6. name: t('routes.demo.comp.comp'),
  7. path: '/comp',
  8. tag: {
  9. dot: true,
  10. },
  11. children: [
  12. {
  13. path: 'basic',
  14. name: t('routes.demo.comp.basic'),
  15. },
  16. {
  17. path: 'form',
  18. name: t('routes.demo.form.form'),
  19. children: [
  20. {
  21. path: 'basic',
  22. name: t('routes.demo.form.basic'),
  23. },
  24. {
  25. path: 'useForm',
  26. name: t('routes.demo.form.useForm'),
  27. },
  28. {
  29. path: 'refForm',
  30. name: t('routes.demo.form.refForm'),
  31. },
  32. {
  33. path: 'advancedForm',
  34. name: t('routes.demo.form.advancedForm'),
  35. },
  36. {
  37. path: 'ruleForm',
  38. name: t('routes.demo.form.ruleForm'),
  39. },
  40. {
  41. path: 'dynamicForm',
  42. name: t('routes.demo.form.dynamicForm'),
  43. },
  44. {
  45. path: 'customerForm',
  46. name: t('routes.demo.form.customerForm'),
  47. },
  48. ],
  49. },
  50. {
  51. path: 'table',
  52. name: t('routes.demo.table.table'),
  53. children: [
  54. {
  55. path: 'basic',
  56. name: t('routes.demo.table.basic'),
  57. },
  58. {
  59. path: 'treeTable',
  60. name: t('routes.demo.table.treeTable'),
  61. },
  62. {
  63. path: 'fetchTable',
  64. name: t('routes.demo.table.fetchTable'),
  65. },
  66. {
  67. path: 'fixedColumn',
  68. name: t('routes.demo.table.fixedColumn'),
  69. },
  70. {
  71. path: 'customerCell',
  72. name: t('routes.demo.table.customerCell'),
  73. },
  74. {
  75. path: 'formTable',
  76. name: t('routes.demo.table.formTable'),
  77. },
  78. {
  79. path: 'useTable',
  80. name: t('routes.demo.table.useTable'),
  81. },
  82. {
  83. path: 'refTable',
  84. name: t('routes.demo.table.refTable'),
  85. },
  86. {
  87. path: 'multipleHeader',
  88. name: t('routes.demo.table.multipleHeader'),
  89. },
  90. {
  91. path: 'mergeHeader',
  92. name: t('routes.demo.table.mergeHeader'),
  93. },
  94. {
  95. path: 'expandTable',
  96. name: t('routes.demo.table.expandTable'),
  97. },
  98. {
  99. path: 'fixedHeight',
  100. name: t('routes.demo.table.fixedHeight'),
  101. },
  102. {
  103. path: 'footerTable',
  104. name: t('routes.demo.table.footerTable'),
  105. },
  106. {
  107. path: 'editCellTable',
  108. name: t('routes.demo.table.editCellTable'),
  109. },
  110. {
  111. path: 'editRowTable',
  112. name: t('routes.demo.table.editRowTable'),
  113. },
  114. ],
  115. },
  116. {
  117. path: 'countTo',
  118. name: t('routes.demo.comp.countTo'),
  119. },
  120. {
  121. path: 'transition',
  122. name: t('routes.demo.comp.transition'),
  123. },
  124. {
  125. path: 'modal',
  126. name: t('routes.demo.comp.modal'),
  127. },
  128. {
  129. path: 'drawer',
  130. name: t('routes.demo.comp.drawer'),
  131. },
  132. {
  133. path: 'desc',
  134. name: t('routes.demo.comp.desc'),
  135. },
  136. {
  137. path: 'qrcode',
  138. name: t('routes.demo.comp.qrcode'),
  139. },
  140. {
  141. path: 'strength-meter',
  142. name: t('routes.demo.comp.strength'),
  143. },
  144. {
  145. path: 'upload',
  146. name: t('routes.demo.comp.upload'),
  147. },
  148. {
  149. path: 'loading',
  150. name: t('routes.demo.comp.loading'),
  151. tag: {
  152. content: 'new',
  153. },
  154. },
  155. {
  156. path: 'tree',
  157. name: t('routes.demo.comp.tree'),
  158. children: [
  159. {
  160. path: 'basic',
  161. name: t('routes.demo.comp.treeBasic'),
  162. },
  163. {
  164. path: 'editTree',
  165. name: t('routes.demo.comp.editTree'),
  166. },
  167. {
  168. path: 'actionTree',
  169. name: t('routes.demo.comp.actionTree'),
  170. },
  171. ],
  172. },
  173. {
  174. name: t('routes.demo.editor.editor'),
  175. path: 'editor',
  176. children: [
  177. {
  178. path: 'markdown',
  179. name: t('routes.demo.editor.markdown'),
  180. children: [
  181. {
  182. path: 'index',
  183. name: t('routes.demo.editor.tinymceBasic'),
  184. },
  185. {
  186. path: 'editor',
  187. name: t('routes.demo.editor.tinymceForm'),
  188. },
  189. ],
  190. },
  191. {
  192. path: 'tinymce',
  193. name: t('routes.demo.editor.tinymce'),
  194. children: [
  195. {
  196. path: 'index',
  197. name: t('routes.demo.editor.tinymceBasic'),
  198. },
  199. {
  200. path: 'editor',
  201. name: t('routes.demo.editor.tinymceForm'),
  202. },
  203. ],
  204. },
  205. ],
  206. },
  207. {
  208. path: 'scroll',
  209. name: t('routes.demo.comp.scroll'),
  210. children: [
  211. {
  212. path: 'basic',
  213. name: t('routes.demo.comp.scrollBasic'),
  214. },
  215. {
  216. path: 'action',
  217. name: t('routes.demo.comp.scrollAction'),
  218. },
  219. {
  220. path: 'virtualScroll',
  221. name: t('routes.demo.comp.virtualScroll'),
  222. },
  223. ],
  224. },
  225. {
  226. path: 'lazy',
  227. name: t('routes.demo.comp.lazy'),
  228. children: [
  229. {
  230. path: 'basic',
  231. name: t('routes.demo.comp.lazyBasic'),
  232. },
  233. {
  234. path: 'transition',
  235. name: t('routes.demo.comp.lazyTransition'),
  236. },
  237. ],
  238. },
  239. {
  240. path: 'verify',
  241. name: t('routes.demo.comp.verify'),
  242. children: [
  243. {
  244. path: 'drag',
  245. name: t('routes.demo.comp.verifyDrag'),
  246. },
  247. {
  248. path: 'rotate',
  249. name: t('routes.demo.comp.verifyRotate'),
  250. },
  251. ],
  252. },
  253. ],
  254. },
  255. };
  256. export default menu;