2020-12-20 23:35:25 +08:00
|
|
|
|
---
|
|
|
|
|
title: PaginationWrapper 分页容器
|
|
|
|
|
description:
|
|
|
|
|
type: 0
|
|
|
|
|
group: ⚙ 组件
|
|
|
|
|
menuName: PaginationWrapper
|
|
|
|
|
icon:
|
|
|
|
|
order: 59
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
功能性组件,分页容器,可以用来对已有列表数据做分页处理。
|
|
|
|
|
|
|
|
|
|
- 输入:默认读取作用域中的 items 变量,如果是其他变量名请配置 `inputName`。
|
|
|
|
|
- 输出:经过分页处理后会把分页后的数据下发给 `outputName` (默认也是 items)对应的数据。
|
|
|
|
|
|
2021-01-07 23:35:03 +08:00
|
|
|
|
```schema: scope="body"
|
2020-12-20 23:35:25 +08:00
|
|
|
|
{
|
|
|
|
|
"type": "service",
|
2021-01-19 10:20:09 +08:00
|
|
|
|
"api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/crud/table",
|
2020-12-20 23:35:25 +08:00
|
|
|
|
"body": [
|
|
|
|
|
{
|
|
|
|
|
"type": "pagination-wrapper",
|
|
|
|
|
"inputName": "rows",
|
|
|
|
|
"outputName": "rows",
|
|
|
|
|
"perPage": 2,
|
|
|
|
|
"body": [
|
|
|
|
|
{
|
|
|
|
|
"type": "table",
|
|
|
|
|
"title": "分页表格",
|
|
|
|
|
"source": "${rows}",
|
|
|
|
|
"columns": [
|
|
|
|
|
{
|
|
|
|
|
"name": "engine",
|
|
|
|
|
"label": "Engine"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "version",
|
|
|
|
|
"label": "Version"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
```
|