fix: 修复 crud 脚手架新增表单中出现错误渲染器的问题 (#9624)

This commit is contained in:
liaoxuezhi 2024-02-20 11:27:12 +08:00 committed by GitHub
parent 85995ded15
commit 9b5d0fda9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),