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

🤔透视表树模式只有叶子节点才展示数据 #2867

Closed
1 of 5 tasks
ggcfcmd opened this issue Aug 19, 2024 · 2 comments
Closed
1 of 5 tasks

🤔透视表树模式只有叶子节点才展示数据 #2867

ggcfcmd opened this issue Aug 19, 2024 · 2 comments
Assignees
Labels
❔question 疑问/使用问题

Comments

@ggcfcmd
Copy link

ggcfcmd commented Aug 19, 2024

🏷 Version

Package Version
@antv/s2 1.54.7
@antv/s2-react 1.46.4
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

使用透视表树模式,之前可以正常渲染,现在只有叶子节点才能渲染,前后代码未做改动。尝试使用在线模式复现正常的情况,未果。官网给的例子目前也是只展示叶子节点,下面是官网的链接。因为项目中维护的版本会自动获取依赖最新的补丁版本,所以无法排除之前正常运行的版本比目前填写的版本旧的可能性

🔗 Reproduce Link

https://s2-v1.antv.antgroup.com/examples/basic/pivot/#tree
image

😊 Expected Behavior

希望可以帮忙确定下是否为依赖版本问题 或者提供解决问题的思路

😅 Current Behavior

@ggcfcmd ggcfcmd added the ❔question 疑问/使用问题 label Aug 19, 2024
@DelMemory
Copy link

@ggcfcmd

image

配置一下就可以正常展示了

@lijinke666 lijinke666 self-assigned this Aug 19, 2024
@lijinke666
Copy link
Member

lijinke666 commented Aug 19, 2024

树状模式下, 非叶子节点 = 行小计节点, 所以需要开启行小计

  1. 开启 showSubTotals, 参考楼上回答
  2. 确保数据源有传入小计数据, 或者开启了前端小计计算功能.

image

使用透视表树模式,之前可以正常渲染

那看起来是很早以前的版本了, 后续有改动, 可以先试试上诉的方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔question 疑问/使用问题
Projects
None yet
Development

No branches or pull requests

3 participants