baidu / baidu/amis

6.11.0 里面crud简单分页,按钮不可点。

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

Description

#### 描述问题:

当服务器返回简单分页 "hasNext": true 的时候,分页按钮不可点

#### 截图或视频:

![Image](https://github.com/user-attachments/assets/83cc5b79-1a42-4d33-ac73-a352761afc5d)

该按钮不可点

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.