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

pagination组件修改 #181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

pagination组件修改 #181

wants to merge 1 commit into from

Conversation

lsclgx
Copy link
Contributor

@lsclgx lsclgx commented Jan 22, 2025

问题一:分页列表最后一页只有一条数据,在这种情况下执行删除操作,删除成功后(多数情况下产品经理不会允许删除一条数据就要重新回到第一页),currentPage的值不会更新,此时刷新列表会出现currentPage大于总页数的情况
方案:在公共组件内监听total,如果出现以上情况,更新currentPage,再刷新列表

问题二:修改每页条数pageSize后,需要把currentPage值置为1,否则可能出现修改pageSize后总页数小于currentPage的情况
方案:修改后currentPage值置为1

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.

1 participant