baidu / baidu/amis

pagination组件 选择每页数据大于总条数时 整个分页组件都消失了

Open
#11,368 0 comments 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

#### 截图或视频:

#### 如何复现(请务必完整填写下面内容):

npm 版本6.8.0

3. 粘贴有问题的完整 `amis schema` 代码:
```
这是schema
{
"type": "pagination",
"id": "pagination",
"align": "right",
"showPerPage": true,
"layout": "total,perPage,pager",
"alwaysShowPagination": true,
"perPageAvailable": [
"10",
"20",
"100",
"500",
"1000",
"2000"
]
}

这是接口返回的
{
"data": {
"HfMiscLaborCategory__findPage": {
"total": 14,
"page": 1
}
}
}
```

4. 操作步骤
这是切换前
![image](https://github.com/user-attachments/assets/cc734a21-d5ac-4321-86fb-4f07b9d1337d)

一共14条数据选择一页20条后整个分页组件消失
![image](https://github.com/user-attachments/assets/1abd65eb-14e6-4fc3-8d22-749142769e83)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.