Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛透视表自定义列头分组 #2893

Open
1 of 5 tasks
Ahui4518 opened this issue Sep 12, 2024 · 0 comments
Open
1 of 5 tasks

🐛透视表自定义列头分组 #2893

Ahui4518 opened this issue Sep 12, 2024 · 0 comments
Labels
next 2.0-next 版本的问题

Comments

@Ahui4518
Copy link

🏷 Version

Package Version
@antv/s2 next
@antv/s2-react -
@antv/s2-vue -

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

在使用透视表的列头分组后,总计和小计的自动聚合计算不出来值

⌨️ Code Snapshots

在官网示例的透视表列头分组的options加入totals: {
row: {
showGrandTotals: true,
calcGrandTotals: {
aggregation: 'SUM'
}
}
}就可以复现

🔗 Reproduce Link

🤔 Steps to Reproduce

😊 Expected Behavior

使用自定义聚合时,回调的第二个参数应该返回小计或总计中需要计算的量值

😅 Current Behavior

透视表自定义列头后,自定义聚合回调的第二个参数为空数组

💻 System information

Environment Info
System -
Browser -
@github-actions github-actions bot added the next 2.0-next 版本的问题 label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next 2.0-next 版本的问题
Projects
None yet
Development

No branches or pull requests

1 participant