mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +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,
|
$path: $path,
|
||||||
render: this.renderChild
|
render: this.renderChild
|
||||||
});
|
});
|
||||||
|
} else if (typeof schema.render === 'function') {
|
||||||
|
return schema.render({
|
||||||
|
...rest,
|
||||||
|
$path: $path,
|
||||||
|
render: this.renderChild
|
||||||
|
});
|
||||||
} else if (!this.renderer) {
|
} else if (!this.renderer) {
|
||||||
return (
|
return (
|
||||||
<LazyComponent
|
<LazyComponent
|
||||||
|
Loading…
Reference in New Issue
Block a user