Skip to content

Commit

Permalink
perf: 一些优化
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Jul 3, 2021
1 parent 8748e29 commit 590ed36
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/guide/advance/improve.md
Expand Up @@ -29,3 +29,22 @@ fast-crud文档里面不会包含底层ui组件的文档。当你要配置组件

## 后台接口参数和返回数据结构与fast-crud的数据结构不一致
请参考文档[request请求配置](/api/crud-options/request.html#request-【请求】)


## 关于rowKey
`a-table``el-table`都有`rowKey`的设置。
默认情况下,`fast-crud``rowKey`设置为`id`
当你后台返回的列表数据主键列名称就是`id`,则无需关心此设置。
否则你需要修改rowKey的配置
```js
const crudOptions ={
table:{
rowKey:'yourIdName',
editable:{
//如果你启用了行编辑,那么还需要修改行编辑的rowKey
rowKey:'yourIdName',
}
}
}

```

0 comments on commit 590ed36

Please sign in to comment.