Merge pull request #10909 from dataease/pr@dev-v2@refactor_pivot_tree

refactor(图表): 透视表树形模式默认折叠
This commit is contained in:
wisonic-s
2024-07-11 17:30:49 +08:00
committed by GitHub

View File

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