ant-design / ant-design/pro-components

🐛[BUG] ProList 组件使用actionRef 获取pageInfo 得到的total为0

Open
#7,862 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述

ProList 组件使用actionRef 获取pageInfo 得到的total为0,proTable 中没有问题,正常返回total 但是prolist 返回的total为0;
### 📷 复现步骤

### 🏞 期望结果

按照实际的total返回pageInfo

### 💻 复现代码

![image](https://github.com/ant-design/pro-components/assets/3370127/ea571617-cfac-4fd6-a945-c9a824e48670)
![image](https://github.com/ant-design/pro-components/assets/3370127/1cf107b5-d950-4b11-9486-f782a6fc6b2d)

### © 版本信息

- ProComponents 版本: 2.3.57
- umi 版本 4
- 浏览器环境 edge
- 开发环境 window11

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start with the ProList actionRef and pageInfo behavior described in the issue, then compare it with the corresponding ProTable behavior, which reportedly returns total correctly. Reproduce the issue using ProComponents 2.3.57 and verify that ProList exposes the actual total through pageInfo.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.