在el-table标签中添加:span-method="objectSpanMethod"method中添加objectSpanMethod({ row, column, rowIndex, columnIndex }) { if (columnIndex === 0) { if (rowIndex % 2 === 0) { return { rowspan: 2, colspan: 1 }; } else { return { rowspan: 0, colspan: 0 }; } }}
在el-table标签中添加:span-method="objectSpanMethod"
method中添加
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) {