refactor(图表): 透视表指标总计名称逻辑优化 (#15561)

This commit is contained in:
wisonic-s
2025-04-01 15:46:57 +08:00
committed by GitHub
parent 582fb57b28
commit 68cc109ef3

View File

@@ -341,9 +341,8 @@ export class TablePivot extends S2ChartView<PivotSheet> {
}, {})
s2Options.layoutCoordinate = (_, __, col) => {
if (col?.isGrandTotals) {
if (colTotalCfgMap[col.value]) {
if (colTotalCfgMap[col.value]?.label) {
col.label = colTotalCfgMap[col.value].label
// col.value = colTotalCfgMap[col.value].label
}
}
}