feat.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. tag: {
  9. dot: true,
  10. },
  11. children: [
  12. {
  13. path: 'icon',
  14. name: t('routes.demo.feat.icon'),
  15. },
  16. {
  17. path: 'tabs',
  18. name: t('routes.demo.feat.tabs'),
  19. },
  20. {
  21. path: 'context-menu',
  22. name: t('routes.demo.feat.contextMenu'),
  23. },
  24. {
  25. path: 'download',
  26. name: t('routes.demo.feat.download'),
  27. },
  28. {
  29. path: 'click-out-side',
  30. name: t('routes.demo.feat.clickOutSide'),
  31. },
  32. {
  33. path: 'img-preview',
  34. name: t('routes.demo.feat.imgPreview'),
  35. },
  36. {
  37. path: 'copy',
  38. name: t('routes.demo.feat.copy'),
  39. },
  40. {
  41. path: 'msg',
  42. name: t('routes.demo.feat.msg'),
  43. },
  44. {
  45. path: 'watermark',
  46. name: t('routes.demo.feat.watermark'),
  47. },
  48. {
  49. path: 'ripple',
  50. name: t('routes.demo.feat.ripple'),
  51. tag: {
  52. content: 'new',
  53. },
  54. },
  55. {
  56. path: 'full-screen',
  57. name: t('routes.demo.feat.fullScreen'),
  58. },
  59. {
  60. path: 'error-log',
  61. name: t('routes.demo.feat.errorLog'),
  62. },
  63. {
  64. name: t('routes.demo.excel.excel'),
  65. path: 'excel',
  66. children: [
  67. {
  68. path: 'customExport',
  69. name: t('routes.demo.excel.customExport'),
  70. },
  71. {
  72. path: 'jsonExport',
  73. name: t('routes.demo.excel.jsonExport'),
  74. },
  75. {
  76. path: 'arrayExport',
  77. name: t('routes.demo.excel.arrayExport'),
  78. },
  79. {
  80. path: 'importExcel',
  81. name: t('routes.demo.excel.importExcel'),
  82. },
  83. ],
  84. },
  85. {
  86. path: 'testTab',
  87. name: t('routes.demo.feat.tab'),
  88. children: [
  89. {
  90. path: 'id1',
  91. name: t('routes.demo.feat.tab1'),
  92. },
  93. {
  94. path: 'id2',
  95. name: t('routes.demo.feat.tab2'),
  96. },
  97. ],
  98. },
  99. ],
  100. },
  101. };
  102. export default menu;