mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 04:18:29 +08:00
schema 添加 render 属性,直接渲染内容
This commit is contained in:
parent
a2c25b4133
commit
4110a4c338
@ -508,6 +508,12 @@ class SchemaRenderer extends React.Component<SchemaRendererProps, any> {
|
||||
$path: $path,
|
||||
render: this.renderChild
|
||||
});
|
||||
} else if (typeof schema.render === 'function') {
|
||||
return schema.render({
|
||||
...rest,
|
||||
$path: $path,
|
||||
render: this.renderChild
|
||||
});
|
||||
} else if (!this.renderer) {
|
||||
return (
|
||||
<LazyComponent
|
||||
|
Loading…
Reference in New Issue
Block a user