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

🙏透视表树结构的小计希望能够使用传入的值 #2557

Closed
1 of 5 tasks
Create-Peace opened this issue Feb 23, 2024 · 1 comment
Closed
1 of 5 tasks

🙏透视表树结构的小计希望能够使用传入的值 #2557

Create-Peace opened this issue Feb 23, 2024 · 1 comment
Labels
🙏feature request 新需求支持 next 2.0-next 版本的问题

Comments

@Create-Peace
Copy link

🏷 Version

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

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

透视表树结构小计需要接受传入的值,因为透视表的明细不能一次性加载完,小计是后端计算的,需要接受传入的值

🏞 What problem does this feature solve

🧐 Suggest the API

name type default description
useCurrentValue boolean false 设置为true时,接受当前计算好的值
@Create-Peace Create-Peace added the 🙏feature request 新需求支持 label Feb 23, 2024
@wjgogogo
Copy link
Contributor

在 dataCfg 中传入总计小计的值即可,s2就不会使用计算的结果了,参考:https://s2.antv.antgroup.com/manual/basic/totals

@lijinke666 lijinke666 added the next 2.0-next 版本的问题 label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏feature request 新需求支持 next 2.0-next 版本的问题
Projects
None yet
Development

No branches or pull requests

3 participants