forked from p96170835/amis
props 添加 propsTransform 方法,方便用户调整属性
This commit is contained in:
parent
e8ba9c2b92
commit
d1d2b1eb3e
|
@ -253,6 +253,13 @@ export function renderChild(prefix: string, node: SchemaNode, props: renderChild
|
|||
return null;
|
||||
}
|
||||
|
||||
const transform = props.propsTransform;
|
||||
|
||||
if (transform) {
|
||||
delete props.propsTransform;
|
||||
props = transform(props);
|
||||
}
|
||||
|
||||
return (
|
||||
<SchemaRenderer
|
||||
{...props}
|
||||
|
|
Loading…
Reference in New Issue