mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +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;
|
||||
}
|
||||
|
||||
const transform = props.propsTransform;
|
||||
|
||||
if (transform) {
|
||||
delete props.propsTransform;
|
||||
props = transform(props);
|
||||
}
|
||||
|
||||
return (
|
||||
<SchemaRenderer
|
||||
{...props}
|
||||
|
Loading…
Reference in New Issue
Block a user