mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复crud快速构建内容失效
This commit is contained in:
parent
6ef0248c29
commit
98f2bb2d18
@ -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}
|
||||
: {})
|
||||
};
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user