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 分页组件bug #11519

Open
925166151 opened this issue Jan 19, 2025 · 3 comments
Open

Pagination 分页组件bug #11519

925166151 opened this issue Jan 19, 2025 · 3 comments
Labels
bug Something isn't working need confirm

Comments

@925166151
Copy link

描述问题:

在curd中的footerToolbar中使用pagination组件,无法使用pager、perPage进行默认。
代码如下:

"footerToolbar": [
{
"type": "pagination",
"layout": "total,perPage,pager,go",
"mode": "normal",
"size": "md",
"activePage": 2,
"ellipsisPageGap": 5,
"lastPage": 99999,
"total": 999,
"perPage": 20,
"maxButtons": 6,
"showPerPage": true,
"perPageAvailable": [
10,
20,
50,
100,
200
],
"showPageInput": true,
"disabled": false
}
]
他依然选择的是每个显示10条记录。并且默认在第1页,截图如下:

Image

Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the bug Something isn't working label Jan 19, 2025
@lhtuling
Copy link

lhtuling commented Jan 20, 2025

应该是直接设置到crud组件里面的 而且是用
page
perPage

其实也可以直接通过url来定位页数和条数 自动识别的
参考示例
https://aisuda.bce.baidu.com/amis/examples/crud/table?orderBy=id&orderDir=asc&page=2&perPage=18

page=2&perPage=18

Amis低代码前端框架交流群【QQ1群】:717791727
Amis低代码前端框架交流群【QQ2群】:721182449

@925166151
Copy link
Author

主要是想在json文件中配置默认值,这个虽然可以实现但是对用户的体验感觉没那么友好

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

No branches or pull requests

2 participants