Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Table] 前端分页部分场景下分页第一次会显示全部数据 #3367

Open
Ryan-Shang opened this issue Feb 17, 2025 · 3 comments
Open
Labels
📒 documentation Improvements or additions to documentation 🙏🏻 help wanted Extra attention is needed

Comments

@Ryan-Shang
Copy link

tdesign-react 版本

1.10.5

重现链接

https://codesandbox.io/p/sandbox/tdesign-react-demo-forked-ztrvkp

重现步骤

组件分页配置defaultPageSize: 10, 页面渲染后,展示全量数据,切换到第2页后,再返回第1页,数据展示正常。同时配置defaultCurrent: 1, defaultPageSize: 10可正常渲染

期望结果

默认第1页展示数据正常

实际结果

第一页展示全量数据

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

接口获取数据,前端分页展示

Copy link
Contributor

👋 @Ryan-Shang,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@huangchen1031
Copy link
Collaborator

看逻辑非受控用法是要传defaultCurrent

@Ryan-Shang
Copy link
Author

看逻辑非受控用法是要传defaultCurrent

这样的话,麻烦在文档上标注下吧,文档上defaultCurrent不是必传项
https://tdesign.tencent.com/react/components/pagination?tab=api

@HaixingOoO HaixingOoO added 📒 documentation Improvements or additions to documentation 🙏🏻 help wanted Extra attention is needed labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📒 documentation Improvements or additions to documentation 🙏🏻 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants