feat.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. import type { MenuModule } from '/@/router/types';
  2. import { t } from '/@/hooks/web/useI18n';
  3. const menu: MenuModule = {
  4. orderNo: 19,
  5. menu: {
  6. name: t('routes.demo.feat.feat'),
  7. path: '/feat',
  8. children: [
  9. {
  10. path: 'icon',
  11. name: t('routes.demo.feat.icon'),
  12. },
  13. {
  14. path: 'ws',
  15. name: t('routes.demo.feat.ws'),
  16. },
  17. {
  18. name: t('routes.demo.feat.sessionTimeout'),
  19. path: 'session-timeout',
  20. },
  21. {
  22. path: 'tabs',
  23. name: t('routes.demo.feat.tabs'),
  24. },
  25. {
  26. path: 'context-menu',
  27. name: t('routes.demo.feat.contextMenu'),
  28. },
  29. {
  30. path: 'download',
  31. name: t('routes.demo.feat.download'),
  32. },
  33. {
  34. path: 'print',
  35. name: t('routes.demo.feat.print'),
  36. },
  37. {
  38. path: 'click-out-side',
  39. name: t('routes.demo.feat.clickOutSide'),
  40. },
  41. {
  42. path: 'img-preview',
  43. name: t('routes.demo.feat.imgPreview'),
  44. },
  45. {
  46. path: 'copy',
  47. name: t('routes.demo.feat.copy'),
  48. },
  49. {
  50. path: 'msg',
  51. name: t('routes.demo.feat.msg'),
  52. },
  53. {
  54. path: 'watermark',
  55. name: t('routes.demo.feat.watermark'),
  56. },
  57. {
  58. path: 'ripple',
  59. name: t('routes.demo.feat.ripple'),
  60. },
  61. {
  62. path: 'full-screen',
  63. name: t('routes.demo.feat.fullScreen'),
  64. },
  65. {
  66. path: 'error-log',
  67. name: t('routes.demo.feat.errorLog'),
  68. },
  69. {
  70. name: t('routes.demo.excel.excel'),
  71. path: 'excel',
  72. children: [
  73. {
  74. path: 'customExport',
  75. name: t('routes.demo.excel.customExport'),
  76. },
  77. {
  78. path: 'jsonExport',
  79. name: t('routes.demo.excel.jsonExport'),
  80. },
  81. {
  82. path: 'arrayExport',
  83. name: t('routes.demo.excel.arrayExport'),
  84. },
  85. {
  86. path: 'importExcel',
  87. name: t('routes.demo.excel.importExcel'),
  88. },
  89. ],
  90. },
  91. {
  92. name: t('routes.demo.feat.breadcrumb'),
  93. path: 'breadcrumb',
  94. children: [
  95. // {
  96. // path: 'flat',
  97. // name: t('routes.demo.feat.breadcrumbFlat'),
  98. // },
  99. // {
  100. // path: 'flatDetail',
  101. // name: t('routes.demo.feat.breadcrumbFlatDetail'),
  102. // },
  103. {
  104. path: 'children',
  105. name: t('routes.demo.feat.breadcrumbChildren'),
  106. },
  107. ],
  108. },
  109. {
  110. path: 'testTab',
  111. name: t('routes.demo.feat.tab'),
  112. children: [
  113. {
  114. path: 'id1',
  115. name: t('routes.demo.feat.tab1'),
  116. },
  117. {
  118. path: 'id2',
  119. name: t('routes.demo.feat.tab2'),
  120. },
  121. ],
  122. },
  123. ],
  124. },
  125. };
  126. export default menu;