amis-rpc-design/readme.md
2023-10-07 19:42:30 +08:00

33 lines
992 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

分页请求参数规则参考:
```js
// 参数名 类型 说明
// ------------ ------- ----------------
// page number 分页,从 1 开始
// perPage number 每页数量
// orderBy string 排序字段,只支持一个
// orderDir 'asc'/'desc' 排序方式
// keywords string 搜索关键字
```
分页请求返回结果结构规则参考:
```js
{
"status": 0,
"msg": "",
"data": {
"items": [
{
// 每一行的数据
"id": 1,
"xxx": "xxxx"
}
],
"total": 200 // 注意!!!这里不是当前请求返回的 items 的长度,而是数据库中一共有多少条数据,用于生成分页组件,如果你不想要分页,把这个不返回就可以了。
}
}
```
对AMIS的修改点
1. Custom.tsx中createRoot -> render
2. 增加对inputTable的对orderChange的支持