mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
props 添加 propsTransform 方法,方便用户调整属性
This commit is contained in:
parent
e7203d9718
commit
1485c25e87
@ -253,6 +253,13 @@ export function renderChild(prefix: string, node: SchemaNode, props: renderChild
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const transform = props.propsTransform;
|
||||||
|
|
||||||
|
if (transform) {
|
||||||
|
delete props.propsTransform;
|
||||||
|
props = transform(props);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SchemaRenderer
|
<SchemaRenderer
|
||||||
{...props}
|
{...props}
|
||||||
|
Loading…
Reference in New Issue
Block a user