Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
laomao800 committed Nov 29, 2023
1 parent 94f8d17 commit 38a523e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/dev/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- `validateResponse` 默认为 `null`
- `resolveResponseErrorMessage` 默认为 `null`
- `filterFields` 取消 `get` 属性,建议使用 `transformRequestData` 统一管理数据转换
- `contentDataMap` 默认值修改为 `{ items: 'result.items', total: 'result.total' }`

### Slots

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ sidebarDepth: 2
### contentDataMap

- type: `Object`
- default: `{ items: 'result.items', total: 'result.total_count' }`
- default: `{ items: 'result.items', total: 'result.total' }`

数据接口响应内容属性映射。可以直接配置各属性相对于接口响应数据的取值路径来直接映射返回值。默认会有表格视图所需的 2 个属性映射 `items` (表格数据) 和 `total` 用于分页组件。

Expand Down

0 comments on commit 38a523e

Please sign in to comment.