table.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
  3. const table: AppRouteModule = {
  4. layout: {
  5. path: '/table',
  6. name: 'TableDemo',
  7. component: PAGE_LAYOUT_COMPONENT,
  8. redirect: '/table/basic',
  9. meta: {
  10. icon: 'ant-design:table-outlined',
  11. title: 'Table',
  12. },
  13. },
  14. routes: [
  15. {
  16. path: '/basic',
  17. name: 'TableBasicDemo',
  18. component: () => import('/@/views/demo/table/Basic.vue'),
  19. meta: {
  20. title: '基础表格',
  21. },
  22. },
  23. {
  24. path: '/treeTable',
  25. name: 'TreeTableDemo',
  26. component: () => import('/@/views/demo/table/TreeTable.vue'),
  27. meta: {
  28. title: '树形表格',
  29. },
  30. },
  31. {
  32. path: '/fetchTable',
  33. name: 'FetchTableDemo',
  34. component: () => import('/@/views/demo/table/FetchTable.vue'),
  35. meta: {
  36. title: '远程加载示例',
  37. },
  38. },
  39. {
  40. path: '/fixedColumn',
  41. name: 'FixedColumnDemo',
  42. component: () => import('/@/views/demo/table/FixedColumn.vue'),
  43. meta: {
  44. title: '固定列',
  45. },
  46. },
  47. {
  48. path: '/customerCell',
  49. name: 'CustomerCellDemo',
  50. component: () => import('/@/views/demo/table/CustomerCell.vue'),
  51. meta: {
  52. title: '自定义列',
  53. },
  54. },
  55. {
  56. path: '/formTable',
  57. name: 'FormTableDemo',
  58. component: () => import('/@/views/demo/table/FormTable.vue'),
  59. meta: {
  60. title: '开启搜索区域',
  61. },
  62. },
  63. {
  64. path: '/useTable',
  65. name: 'UseTableDemo',
  66. component: () => import('/@/views/demo/table/UseTable.vue'),
  67. meta: {
  68. title: 'UseTable',
  69. },
  70. },
  71. {
  72. path: '/refTable',
  73. name: 'RefTableDemo',
  74. component: () => import('/@/views/demo/table/RefTable.vue'),
  75. meta: {
  76. title: 'RefTable',
  77. },
  78. },
  79. {
  80. path: '/multipleHeader',
  81. name: 'MultipleHeaderDemo',
  82. component: () => import('/@/views/demo/table/MultipleHeader.vue'),
  83. meta: {
  84. title: '多级表头',
  85. },
  86. },
  87. {
  88. path: '/mergeHeader',
  89. name: 'MergeHeaderDemo',
  90. component: () => import('/@/views/demo/table/MergeHeader.vue'),
  91. meta: {
  92. title: '合并单元格',
  93. },
  94. },
  95. {
  96. path: '/expandTable',
  97. name: 'ExpandTableDemo',
  98. component: () => import('/@/views/demo/table/ExpandTable.vue'),
  99. meta: {
  100. title: '可展开表格',
  101. },
  102. },
  103. {
  104. path: '/fixedHeight',
  105. name: 'FixedHeightDemo',
  106. component: () => import('/@/views/demo/table/FixedHeight.vue'),
  107. meta: {
  108. title: '定高/头部自定义',
  109. },
  110. },
  111. {
  112. path: '/footerTable',
  113. name: 'FooterTableDemo',
  114. component: () => import('/@/views/demo/table/FooterTable.vue'),
  115. meta: {
  116. title: '表尾行合计',
  117. },
  118. },
  119. {
  120. path: '/editCellTable',
  121. name: 'EditCellTableDemo',
  122. component: () => import('/@/views/demo/table/EditCellTable.vue'),
  123. meta: {
  124. title: '可编辑单元格',
  125. },
  126. },
  127. ],
  128. };
  129. export default table;