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

BUG:组件Pagination分页 在total为0时 page显示为1并且可以点击 但是传递的参数却为0 #7466

Open
1 task
wang22295881 opened this issue Mar 29, 2024 · 0 comments

Comments

@wang22295881
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.1.0

Environment

vue3

Reproduction link

https://www.antdv.com/components/pagination-cn

Steps to reproduce

我在使用Pagination时 与搜索相结合 当搜索结果为0 分页显示为1 并且还可以点击 但点击后传递参数为0 并且后端报错

What is expected?

total为0时 应该显示为1 且不可点击 或者可以点击传递参数应该设为1 而非0

What is actually happening?

page应该是通过total算出来 0/size = 0

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

No branches or pull requests

1 participant