From 98f2bb2d18c0375995055ddfa5c54fcaf7a5d335 Mon Sep 17 00:00:00 2001 From: jinye Date: Fri, 2 Feb 2024 17:21:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dcrud=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=86=85=E5=AE=B9=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor/src/plugin/CRUD.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/amis-editor/src/plugin/CRUD.tsx b/packages/amis-editor/src/plugin/CRUD.tsx index ebb823c1b7e..28fbbe45b88 100644 --- a/packages/amis-editor/src/plugin/CRUD.tsx +++ b/packages/amis-editor/src/plugin/CRUD.tsx @@ -873,7 +873,6 @@ export class CRUDPlugin extends BasePlugin { return { ...rest, - ...(valueSchema.mode === 'table' ? {columns} : {}), ...(valueSchema.mode === 'cards' ? { card: this.transformByMode({ @@ -882,8 +881,7 @@ export class CRUDPlugin extends BasePlugin { schema: valueSchema }) } - : {}), - ...(valueSchema.mode === 'list' + : valueSchema.mode === 'list' ? { listItem: this.transformByMode({ from: 'table', @@ -891,6 +889,8 @@ export class CRUDPlugin extends BasePlugin { schema: valueSchema }) } + : columns + ? {columns} : {}) }; },