mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
fix: 修复 crud 脚手架新增表单中出现错误渲染器的问题 (#9624)
This commit is contained in:
parent
85995ded15
commit
9b5d0fda9d
@ -812,7 +812,12 @@ export class CRUDPlugin extends BasePlugin {
|
|||||||
api: valueSchema.api?.method?.match(/^(post|put)$/i)
|
api: valueSchema.api?.method?.match(/^(post|put)$/i)
|
||||||
? valueSchema.api
|
? valueSchema.api
|
||||||
: {...valueSchema.api, method: 'post'},
|
: {...valueSchema.api, method: 'post'},
|
||||||
body: valueSchema.columns.map((column: ColumnItem) => {
|
body: valueSchema.columns
|
||||||
|
.filter(
|
||||||
|
({type}: any) =>
|
||||||
|
type !== 'progress' && type !== 'operation'
|
||||||
|
)
|
||||||
|
.map((column: ColumnItem) => {
|
||||||
const type = column.type;
|
const type = column.type;
|
||||||
return {
|
return {
|
||||||
type: viewTypeToEditType(type),
|
type: viewTypeToEditType(type),
|
||||||
|
Loading…
Reference in New Issue
Block a user