VisActor / VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
https://visactor.io/vtable
MIT License
1.81k stars 170 forks source link

[refactor] 数据聚合行能否强行设置cellType为text? #2577

Open huhaosanxiong opened 1 month ago

huhaosanxiong commented 1 month ago

Version

1.8.1

Link to Minimal Reproduction

Steps to Reproduce

image 底下的汇总单元格能否指定为文本类型,因为按理说是不需要进行交互的。目前指定了序号列的cellType: 'checkbox',然后底下的聚合单元格也引用了。

目前用了2种方法: 1、单元格自定义,在customLayout中判断isAggregation,是聚合行的话就不添加checkbox。 缺点:表格顶部的全选勾选的事件,以及监听CHECKBOX_STATE_CHANGE事件后,每行的勾选状态需要自己维护。

2、系统checkbox类型单元格,勾选事件不需要额外处理(方便)。 缺点:底部的聚合行也会复用此类型。

Current Behavior

见上图。

Expected Behavior

仅聚合行能够自定义单元格

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

huhaosanxiong commented 1 month ago

通过改变cellType可以解决这个问题,如果是汇总行的话,就return text类型 WX20241012-091601@2x

fangsmile commented 1 month ago

感谢你的反馈!我们已经收到你的问题,并将在后续进行处理。 如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,留言后开始你的创作提pr给我们! 欢迎大家参与开源共建!我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。 参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide 与官方开发者交流问题可以下载飞书app扫码加入飞书群: 飞书20241029-170312 再次感谢你的支持!

Thank you for your feedback! We have received your question and will deal with it later. If any developer is interested in this issue, please leave a message "claim this issue" below the issue, and then start submitting your creation to us! Welcome everyone to participate in open source co-construction! We are very grateful to every contributor. After submitting the PR, we will prepare a gift for the developers who participate in the co-construction. For participation in co-construction, please refer to: https://visactor.io/vtable/guide/Contribution_Guide To communicate with official developers, you can download the Feishu app and scan the QR code to join the Feishu group! Thank you again for your support!