VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] ListTable 添加配置项支持数据为空时仍显示聚合行

Open 7dingdang0 opened this issue 8 months ago • 0 comments

What problem does this feature solve?

当前表格的列数据聚合功能非常实用(在表尾展示统计结果),但发现当表格数据为空时,聚合行会完全隐藏。这可能导致以下问题:

  1. 空数据状态下无法展示预设的统计逻辑
  2. 需要手动新增假行数据,带来额外开发成本

What does the proposed API look like?

新增一个配置项(如 showAggregationWhenEmpty),实现: 当开启时(true):即使数据为空也展示聚合行; 当关闭时(false,默认值):保持现有逻辑(隐藏聚合行)

7dingdang0 avatar Apr 27 '25 08:04 7dingdang0