Skip to content

feat(array-table): 支持totalPage为1时仍然显示分页#50

Merged
yiyunwan merged 1 commit intoformilyjs:masterfrom
link-zhao-1:master
Mar 10, 2025
Merged

feat(array-table): 支持totalPage为1时仍然显示分页#50
yiyunwan merged 1 commit intoformilyjs:masterfrom
link-zhao-1:master

Conversation

@link-zhao-1
Copy link
Contributor

@link-zhao-1 link-zhao-1 commented Feb 11, 2025

Before submitting a pull request, please make sure the following is done...

  • Ensure the pull request title and commit message follow the Commit Specific in English.
  • Fork the repo and create your branch from master or master.
  • If you've added code that should be tested, add tests!
  • If you've changed APIs, update the documentation.
  • Ensure the test suite passes (npm test).
  • Make sure your code lints (npm run lint) - we've done our best to make sure these rules match our internal linting guidelines.

Please do not delete the above content


What have you changed?

用户将pageSize切换成大于total时(例如total=70,pageSize切换成100),此时totalPage=1,将不会展示分页器,这会导致用户没有地方再次切换pageSize了。
修改为:当totalPage为1的时候,需要显示分页器。

@netlify
Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for formily-antd5 ready!

Name Link
🔨 Latest commit 15a0d41
🔍 Latest deploy log https://app.netlify.com/sites/formily-antd5/deploys/67aaf8c3e7495b0008f4047b
😎 Deploy Preview https://deploy-preview-50--formily-antd5.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@yiyunwan yiyunwan merged commit c0d8bc5 into formilyjs:master Mar 10, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants