竖着: customRender: (value, row, index) => {
const obj = {
children: value,
attrs: {},
};
if (index === 0 || index === 7) {
obj.attrs.rowSpan = 7;
}
// These two are merged into above cell
if (
index === 1 ||
index === 2 ||
index === 3 ||
index === 4 ||
index === 5 ||
index === 6 ||
index === 8 ||
index === 9 ||
index === 10 ||
index === 11 ||
index === 12 ||
index === 13
) {
obj.attrs.rowSpan = 0;
}
return obj;
},
表头横着: colSpan: 2, 被合的 colSpan: 0