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] 设置了分页属性,但是并没有显示出分页器 #2000

Closed
little-yaonv opened this issue Jun 27, 2024 · 4 comments
Closed

[Bug] 设置了分页属性,但是并没有显示出分页器 #2000

little-yaonv opened this issue Jun 27, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@little-yaonv
Copy link

Version

^0.23.4

Link to Minimal Reproduction

https://visactor.io/vtable/demo/list-table-data-analysis/list-table-aggregation-multiple

Steps to Reproduce

需要使用分页功能,在表格的option中设置了分页属性
pagination: {
perPageCount: 100,
currentPage: 0
},

Current Behavior

并没有显示出分页器

Expected Behavior

需要显示出分页器

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@little-yaonv little-yaonv added the bug Something isn't working label Jun 27, 2024
@fangsmile
Copy link
Contributor

分页器是需要自己来做的 上述配置 只是让vtable来展示对应的数据。https://visactor.io/vtable/demo/basic-functionality/pagination 可以参考demo代码 或者使用其他ui组件的翻页器

@fangsmile fangsmile self-assigned this Jun 28, 2024
@little-yaonv
Copy link
Author

好的,我看这个demo上切换页数使用的是
tableInstance.updatePagination({
currentPage: i - 1
});
我们这边是在react环境中使用,用的是@visactor/react-vtable包,并不是通过new VTable.ListTable的方式,所以没有tableInstance,那要如何使用updatePagination这个方法呢

@fangsmile
Copy link
Contributor

fangsmile commented Jun 28, 2024

image

image
@little-yaonv 可多翻阅看看demo

@little-yaonv
Copy link
Author

little-yaonv commented Jul 4, 2024 via email

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants