🔱: [client] sync upgrade with 2 commits [trident-sync]

chore:
This commit is contained in:
GitHub Actions Bot
2023-11-21 19:24:11 +00:00
parent 2ea0c48853
commit 2277c87908
@@ -108,9 +108,11 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
editable: {
mode: "cell",
exclusive: true,
exclusiveEffect: "cancel",
//排他式激活效果,将其他行的编辑状态触发保存
exclusiveEffect: "save",
async updateCell(opts) {
const { row, key, value } = opts;
//如果是添加,需要返回{[rowKey]:xxx},比如:{id:2}
return await api.UpdateCell(row.id, key, value);
}
},