fix: 修复crud快速构建内容失效

This commit is contained in:
jinye 2024-02-02 17:21:47 +08:00 committed by lmaomaoz
parent 6ef0248c29
commit 98f2bb2d18

View File

@ -873,7 +873,6 @@ export class CRUDPlugin extends BasePlugin {
return { return {
...rest, ...rest,
...(valueSchema.mode === 'table' ? {columns} : {}),
...(valueSchema.mode === 'cards' ...(valueSchema.mode === 'cards'
? { ? {
card: this.transformByMode({ card: this.transformByMode({
@ -882,8 +881,7 @@ export class CRUDPlugin extends BasePlugin {
schema: valueSchema schema: valueSchema
}) })
} }
: {}), : valueSchema.mode === 'list'
...(valueSchema.mode === 'list'
? { ? {
listItem: this.transformByMode({ listItem: this.transformByMode({
from: 'table', from: 'table',
@ -891,6 +889,8 @@ export class CRUDPlugin extends BasePlugin {
schema: valueSchema schema: valueSchema
}) })
} }
: columns
? {columns}
: {}) : {})
}; };
}, },