comp.ts 6.2 KB

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