feat.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. export default {
  4. layout: {
  5. path: '/feat',
  6. name: 'FeatDemo',
  7. component: PAGE_LAYOUT_COMPONENT,
  8. redirect: '/feat/icon',
  9. meta: {
  10. icon: 'ic:outline-featured-play-list',
  11. title: '页面功能',
  12. },
  13. },
  14. routes: [
  15. {
  16. path: '/icon',
  17. name: 'IconDemo',
  18. component: () => import('/@/views/demo/comp/icon/index.vue'),
  19. meta: {
  20. title: '图标',
  21. },
  22. },
  23. {
  24. path: '/tabs',
  25. name: 'TabsDemo',
  26. component: () => import('/@/views/demo/feat/tabs/index.vue'),
  27. meta: {
  28. title: '标签页操作',
  29. },
  30. },
  31. {
  32. path: '/context-menu',
  33. name: 'ContextMenuDemo',
  34. component: () => import('/@/views/demo/feat/context-menu/index.vue'),
  35. meta: {
  36. title: '右键菜单',
  37. },
  38. },
  39. {
  40. path: '/click-out-side',
  41. name: 'ClickOutSideDemo',
  42. component: () => import('/@/views/demo/comp/click-out-side/index.vue'),
  43. meta: {
  44. title: 'ClickOutSide组件',
  45. },
  46. },
  47. {
  48. path: '/img-preview',
  49. name: 'ImgPreview',
  50. component: () => import('/@/views/demo/feat/img-preview/index.vue'),
  51. meta: {
  52. title: '图片预览',
  53. },
  54. },
  55. {
  56. path: '/copy',
  57. name: 'CopyDemo',
  58. component: () => import('/@/views/demo/feat/copy/index.vue'),
  59. meta: {
  60. title: '剪切板',
  61. },
  62. },
  63. {
  64. path: '/msg',
  65. name: 'MsgDemo',
  66. component: () => import('/@/views/demo/feat/msg/index.vue'),
  67. meta: {
  68. title: '消息提示',
  69. },
  70. },
  71. {
  72. path: '/i18n',
  73. name: 'I18nDemo',
  74. component: () => import('/@/views/demo/feat/i18n/index.vue'),
  75. meta: {
  76. title: '国际化',
  77. },
  78. },
  79. {
  80. path: '/watermark',
  81. name: 'WatermarkDemo',
  82. component: () => import('/@/views/demo/feat/watermark/index.vue'),
  83. meta: {
  84. title: '水印',
  85. },
  86. },
  87. {
  88. path: '/full-screen',
  89. name: 'FullScreenDemo',
  90. component: () => import('/@/views/demo/feat/full-screen/index.vue'),
  91. meta: {
  92. title: '全屏',
  93. },
  94. },
  95. {
  96. path: '/testTab/:id',
  97. name: 'TestTab',
  98. component: () => import('/@/views/demo/feat/tab-params/index.vue'),
  99. meta: {
  100. title: 'Tab带参',
  101. },
  102. },
  103. ],
  104. } as AppRouteModule;