1 objectSpanMethod({ row, column, rowIndex, columnIndex }) {
 2       if (columnIndex === 0) {
 3         if (rowIndex % 2 === 0) {
 4           return {
 5             rowspan: 2,
 6             colspan: 1
 7           };
 8         } else {
 9           return {
10             rowspan: 0,
11             colspan: 0
12           };
13         }
14       }
15     }
1 <el-table :data="tableData" :span-method="objectSpanMethod" border>

element-ui合并行或列的计算方法

element-ui table :span-method(行合并)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2021-08-29
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-05
  • 2022-12-23
  • 2022-02-01
  • 2021-08-09
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案