ant-design / ant-design/pro-components
🧐如何增加一行summary 在 protable里
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
### 🧐 问题描述 | Problem description
根据我详细反复地阅读 我发现 protable 并没有 如 table一样有一个summary props 来显示total
请问下该怎么用最简短的办法来达到这个
我想在我的protable 里面加一个total balance在最下面的row
这个是在使用table做的截图 还希望有人能给与协助 谢谢

OS:
Protable有没有类似像summary的东西呢
{
let totalBorrow = 0;
let totalRepayment = 0;
pageData.forEach(({ borrow, repayment }) => {
totalBorrow += borrow;
totalRepayment += repayment;
});
Contributor guide
Research direction
Start with ProTable's API and implementation, then compare it with the shown Ant Design Table summary prop. Confirm how ProTable exposes or could support a summary row, and consider the requested total balance row complete when it can be rendered beneath the table data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100