Skip to content

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

@7dingdang0

Description

@7dingdang0

What problem does this feature solve?

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

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

What does the proposed API look like?

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions