refactor(图表): 透视表树形模式默认折叠

This commit is contained in:
wisonic 2024-07-11 17:28:42 +08:00
parent c97ef87a03
commit b28e166ade

View File

@ -191,10 +191,12 @@ export class TablePivot extends S2ChartView<PivotSheet> {
sortParams: sortParams sortParams: sortParams
} }
// options // options
const style = this.configStyle(chart)
style.hierarchyCollapse = true
const s2Options: S2Options = { const s2Options: S2Options = {
width: containerDom.offsetWidth, width: containerDom.offsetWidth,
height: containerDom.offsetHeight, height: containerDom.offsetHeight,
style: this.configStyle(chart), style,
totals: tableTotal as Totals, totals: tableTotal as Totals,
conditions: this.configConditions(chart), conditions: this.configConditions(chart),
tooltip: { tooltip: {