table.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. import type { AppRouteModule } from '/@/router/types';
  2. import { LAYOUT } from '/@/router/constant';
  3. const table: AppRouteModule = {
  4. path: '/table',
  5. name: 'TableDemo',
  6. component: LAYOUT,
  7. redirect: '/table/basic',
  8. meta: {
  9. icon: 'ant-design:table-outlined',
  10. title: 'routes.demo.table.table',
  11. },
  12. children: [
  13. {
  14. path: 'basic',
  15. name: 'TableBasicDemo',
  16. component: () => import('/@/views/demo/table/Basic.vue'),
  17. meta: {
  18. title: 'routes.demo.table.basic',
  19. },
  20. },
  21. {
  22. path: 'treeTable',
  23. name: 'TreeTableDemo',
  24. component: () => import('/@/views/demo/table/TreeTable.vue'),
  25. meta: {
  26. title: 'routes.demo.table.treeTable',
  27. },
  28. },
  29. {
  30. path: 'fetchTable',
  31. name: 'FetchTableDemo',
  32. component: () => import('/@/views/demo/table/FetchTable.vue'),
  33. meta: {
  34. title: 'routes.demo.table.fetchTable',
  35. },
  36. },
  37. {
  38. path: 'fixedColumn',
  39. name: 'FixedColumnDemo',
  40. component: () => import('/@/views/demo/table/FixedColumn.vue'),
  41. meta: {
  42. title: 'routes.demo.table.fixedColumn',
  43. },
  44. },
  45. {
  46. path: 'customerCell',
  47. name: 'CustomerCellDemo',
  48. component: () => import('/@/views/demo/table/CustomerCell.vue'),
  49. meta: {
  50. title: 'routes.demo.table.customerCell',
  51. },
  52. },
  53. {
  54. path: 'formTable',
  55. name: 'FormTableDemo',
  56. component: () => import('/@/views/demo/table/FormTable.vue'),
  57. meta: {
  58. title: 'routes.demo.table.formTable',
  59. },
  60. },
  61. {
  62. path: 'useTable',
  63. name: 'UseTableDemo',
  64. component: () => import('/@/views/demo/table/UseTable.vue'),
  65. meta: {
  66. title: 'routes.demo.table.useTable',
  67. },
  68. },
  69. {
  70. path: 'refTable',
  71. name: 'RefTableDemo',
  72. component: () => import('/@/views/demo/table/RefTable.vue'),
  73. meta: {
  74. title: 'routes.demo.table.refTable',
  75. },
  76. },
  77. {
  78. path: 'multipleHeader',
  79. name: 'MultipleHeaderDemo',
  80. component: () => import('/@/views/demo/table/MultipleHeader.vue'),
  81. meta: {
  82. title: 'routes.demo.table.multipleHeader',
  83. },
  84. },
  85. {
  86. path: 'mergeHeader',
  87. name: 'MergeHeaderDemo',
  88. component: () => import('/@/views/demo/table/MergeHeader.vue'),
  89. meta: {
  90. title: 'routes.demo.table.mergeHeader',
  91. },
  92. },
  93. {
  94. path: 'expandTable',
  95. name: 'ExpandTableDemo',
  96. component: () => import('/@/views/demo/table/ExpandTable.vue'),
  97. meta: {
  98. title: 'routes.demo.table.expandTable',
  99. },
  100. },
  101. {
  102. path: 'fixedHeight',
  103. name: 'FixedHeightDemo',
  104. component: () => import('/@/views/demo/table/FixedHeight.vue'),
  105. meta: {
  106. title: 'routes.demo.table.fixedHeight',
  107. },
  108. },
  109. {
  110. path: 'footerTable',
  111. name: 'FooterTableDemo',
  112. component: () => import('/@/views/demo/table/FooterTable.vue'),
  113. meta: {
  114. title: 'routes.demo.table.footerTable',
  115. },
  116. },
  117. {
  118. path: 'editCellTable',
  119. name: 'EditCellTableDemo',
  120. component: () => import('/@/views/demo/table/EditCellTable.vue'),
  121. meta: {
  122. title: 'routes.demo.table.editCellTable',
  123. },
  124. },
  125. {
  126. path: 'editRowTable',
  127. name: 'EditRowTableDemo',
  128. component: () => import('/@/views/demo/table/EditRowTable.vue'),
  129. meta: {
  130. title: 'routes.demo.table.editRowTable',
  131. },
  132. },
  133. ],
  134. };
  135. export default table;