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