mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
🔱: [client] sync upgrade with 2 commits [trident-sync]
chore:
This commit is contained in:
@@ -108,9 +108,11 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||||||
editable: {
|
editable: {
|
||||||
mode: "cell",
|
mode: "cell",
|
||||||
exclusive: true,
|
exclusive: true,
|
||||||
exclusiveEffect: "cancel",
|
//排他式激活效果,将其他行的编辑状态触发保存
|
||||||
|
exclusiveEffect: "save",
|
||||||
async updateCell(opts) {
|
async updateCell(opts) {
|
||||||
const { row, key, value } = opts;
|
const { row, key, value } = opts;
|
||||||
|
//如果是添加,需要返回{[rowKey]:xxx},比如:{id:2}
|
||||||
return await api.UpdateCell(row.id, key, value);
|
return await api.UpdateCell(row.id, key, value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user