fix(图表): typo

This commit is contained in:
wisonic
2026-05-14 19:14:49 +08:00
committed by wisonic-s
parent 51645479cf
commit e9b7fd71bf

View File

@@ -417,7 +417,7 @@ export class TablePivot extends S2ChartView<PivotSheet> {
tmp = tmp.parent
}
})
const totlaRowWidth = ev.rowsHierarchy.sampleNodesForAllLevels.reduce((p, n) => {
const totalRowWidth = ev.rowsHierarchy.sampleNodesForAllLevels.reduce((p, n) => {
return p + n.width
}, 0)
const maxRowLevel = ev.rowsHierarchy.maxLevel
@@ -431,7 +431,7 @@ export class TablePivot extends S2ChartView<PivotSheet> {
n.width = width
}
})
ev.rowsHierarchy.width = totlaRowWidth
ev.rowsHierarchy.width = totalRowWidth
ev.colsHierarchy.width = totalColWidth
}
s2.store.set('lastLayoutResult', undefined)