mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
fix: 修复 crud 脚手架新增表单中出现错误渲染器的问题 (#9624)
This commit is contained in:
parent
85995ded15
commit
9b5d0fda9d
@ -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'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user