Skip to content

Commit

Permalink
fix: 修复 crud 脚手架新增表单中出现错误渲染器的问题 (baidu#9624)
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Feb 20, 2024
1 parent 85995de commit 9b5d0fd
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions packages/amis-editor/src/plugin/CRUD.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -812,14 +812,19 @@ export class CRUDPlugin extends BasePlugin {
api: valueSchema.api?.method?.match(/^(post|put)$/i)
? valueSchema.api
: {...valueSchema.api, method: 'post'},
body: valueSchema.columns.map((column: ColumnItem) => {
const type = column.type;
return {
type: viewTypeToEditType(type),
name: column.name,
label: column.label
};
})
body: valueSchema.columns
.filter(
({type}: any) =>
type !== 'progress' && type !== 'operation'
)
.map((column: ColumnItem) => {
const type = column.type;
return {
type: viewTypeToEditType(type),
name: column.name,
label: column.label
};
})
};
valueSchema.headerToolbar = [createSchemaBase, 'bulkActions'];
}
Expand Down

0 comments on commit 9b5d0fd

Please sign in to comment.