Skip to content

Commit 9b5d0fd

Browse files
authored
fix: 修复 crud 脚手架新增表单中出现错误渲染器的问题 (#9624)
1 parent 85995de commit 9b5d0fd

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

packages/amis-editor/src/plugin/CRUD.tsx

+13-8
Original file line numberDiff line numberDiff line change
@@ -812,14 +812,19 @@ export class CRUDPlugin extends BasePlugin {
812812
api: valueSchema.api?.method?.match(/^(post|put)$/i)
813813
? valueSchema.api
814814
: {...valueSchema.api, method: 'post'},
815-
body: valueSchema.columns.map((column: ColumnItem) => {
816-
const type = column.type;
817-
return {
818-
type: viewTypeToEditType(type),
819-
name: column.name,
820-
label: column.label
821-
};
822-
})
815+
body: valueSchema.columns
816+
.filter(
817+
({type}: any) =>
818+
type !== 'progress' && type !== 'operation'
819+
)
820+
.map((column: ColumnItem) => {
821+
const type = column.type;
822+
return {
823+
type: viewTypeToEditType(type),
824+
name: column.name,
825+
label: column.label
826+
};
827+
})
823828
};
824829
valueSchema.headerToolbar = [createSchemaBase, 'bulkActions'];
825830
}

0 commit comments

Comments
 (0)