Skip to content

Commit

Permalink
fix: 修复crud快速构建内容失效
Browse files Browse the repository at this point in the history
  • Loading branch information
jinye authored and CheshireJCat committed Feb 2, 2024
1 parent 6ef0248 commit 98f2bb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/amis-editor/src/plugin/CRUD.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,6 @@ export class CRUDPlugin extends BasePlugin {

return {
...rest,
...(valueSchema.mode === 'table' ? {columns} : {}),
...(valueSchema.mode === 'cards'
? {
card: this.transformByMode({
Expand All @@ -882,15 +881,16 @@ export class CRUDPlugin extends BasePlugin {
schema: valueSchema
})
}
: {}),
...(valueSchema.mode === 'list'
: valueSchema.mode === 'list'
? {
listItem: this.transformByMode({
from: 'table',
to: 'list',
schema: valueSchema
})
}
: columns
? {columns}
: {})
};
},
Expand Down

0 comments on commit 98f2bb2

Please sign in to comment.