comp.ts 6.4 KB

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