属性错误

This commit is contained in:
liaoxuezhi 2019-09-20 11:41:28 +08:00
parent 4a2db23908
commit b59d60f8b2

View File

@ -510,7 +510,7 @@ class SchemaRenderer extends React.Component<SchemaRendererProps, any> {
render: this.renderChild
});
} else if (typeof schema.component === 'function') {
return React.createElement(schema.children as any, {
return React.createElement(schema.component as any, {
...rest,
$path: $path,
render: this.renderChild