6.11.0 里面crud简单分页,按钮不可点。
- Dominant language
- TypeScript
- Stars
- 18.9k
- Forks
- 2.7k
- PR merge metrics
- No merged PRs in 30d
Description
#### 描述问题:
当服务器返回简单分页 "hasNext": true 的时候,分页按钮不可点
#### 截图或视频:

该按钮不可点
#### 如何复现(请务必完整填写下面内容):
1. 你是如何使用 amis 的?
cdn
2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
6.11.0
3. 粘贴有问题的完整 `amis schema` 代码:
```
amis demo
html,
body,
.app-wrapper {
position: relative;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
(function () {
let amis = amisRequire("amis/embed");
// 通过替换下面这个配置来生成不同页面
let amisJSON = {
type: "page",
title: "表单页面",
body: [
{
type: "crud",
api: "./pagination.json",
columns: [
{
name: "id",
label: "ID",
type: "text",
},
{
name: "status",
label: "status",
type: "text",
},
],
},
],
};
let amisScoped = amis.embed("#root", amisJSON);
})();
```
pagination.json 内容如下:
```
{
"status": 0,
"msg": "ok",
"data": {
"rows": [
{
"id": 1,
"status": 1
},
{
"id": 2,
"status": 2
},
{
"id": 3,
"status": 2
},
{
"id": 4,
"status": 2
},
{
"id": 5,
"status": 2
},
{
"id": 6,
"status": 2
},
{
"id": 7,
"status": 2
},
{
"id": 8,
"status": 2
},
{
"id": 9,
"status": 2
},
{
"id": 10,
"status": 2
}
],
"hasNext": true
}
}
```
请教各位高手,这个可能是什么问题啊?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the CRUD pagination behavior using the provided CDN demo and pagination.json response, focusing on how data.hasNext is handled. Reproduce the issue with the supplied amis schema, then verify that a true hasNext value enables the next-page button and that the button advances pagination.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100