fix(视图-表格): 隐藏表头显示异常。

This commit is contained in:
wisonic-s 2023-12-20 14:10:46 +08:00
parent 9dfdd55eaf
commit c00c2b49c9

View File

@ -98,10 +98,9 @@ export function baseTableInfo(s2, container, chart, action, tableData, pageInfo)
if (s2Options.showSeriesNumber) {
s2Options.colCell = (node) => {
if (node.colIndex === 0) {
if (!customAttr.size.indexLabel) {
node.label = customAttr.size.indexLabel
if (!customAttr.size.indexLabel || customAttr.size.showTableHeader === false) {
node.label = ' '
} else {
node.label = customAttr.size.indexLabel
}
}
}
@ -120,6 +119,11 @@ export function baseTableInfo(s2, container, chart, action, tableData, pageInfo)
colCellVertical: false
}
}
s2Options.colCell = (node) => {
if (node.colIndex === 0) {
node.label = ' '
}
}
}
// 开始渲染