feat(图表): 透视表行汇总小计可以根据维度灵活配置 #11336

This commit is contained in:
ulleo
2024-12-26 17:45:22 +08:00
committed by 王嘉豪
parent 090ecb433f
commit d2a573edd3

View File

@@ -180,6 +180,12 @@ const handleDefaultVal = (chart: Chart) => {
if (customAttr.tableCell.mergeCells === undefined) {
customAttr.tableCell.mergeCells = false
}
if (chart.type === 'table-pivot') {
if (!customAttr.tableTotal?.row?.subTotalsDimensionsNew) {
customAttr.tableTotal.row.subTotalsDimensionsNew =
!!customAttr.tableTotal.row.subTotalsDimensionsNew
}
}
}
const renderChart = (viewInfo: Chart, resetPageInfo: boolean) => {
if (!viewInfo) {