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} : {}) }; },