From 2277c879081046edc7cb76ca4aa69e1a35be642d Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot Date: Tue, 21 Nov 2023 19:24:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=B1:=20[client]=20sync=20upgrade=20wit?= =?UTF-8?q?h=202=20commits=20[trident-sync]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chore: --- .../ui/certd-client/src/views/crud/editable/cell/crud.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-client/src/views/crud/editable/cell/crud.tsx b/packages/ui/certd-client/src/views/crud/editable/cell/crud.tsx index 453043da1..658d15000 100644 --- a/packages/ui/certd-client/src/views/crud/editable/cell/crud.tsx +++ b/packages/ui/certd-client/src/views/crud/editable/cell/crud.tsx @@ -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); } },