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

BasicTable 的pagination 手动设置页码的值为1后并没有回到第一页 #302

Open
moyangdan opened this issue Nov 13, 2024 · 1 comment

Comments

@moyangdan
Copy link

// 分页
const pagination = ref({
page: 1,
pageSize: 10,
pageSizes: [10, 20, 30, 40, 50],
itemCount: 0,
showSizePicker: true,
onChange: (page: number) => {
console.log('翻页');
pagination.value.page = page;
},
onUpdatePageSize: (pageSize: number) => {
pagination.value.pageSize = pageSize;
pagination.value.page = 1;
},
});

function filterList() {
pagination.value.page = 1;
getList();
}

@moyangdan
Copy link
Author

就是在page不为1的页数时,手动设置页码为1,或者itemCount总条数时,不能生效

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