mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix(vision-polyfill): 当前值是 JSSlot 类型,传入相对应的 slotNode
This commit is contained in:
parent
7454572790
commit
6ccee9941f
@ -47,6 +47,10 @@ export function compatibleReducer(props: any, node: Node): any {
|
||||
// newProps[key] = props[key];
|
||||
// return;
|
||||
// }
|
||||
// 假如当前值是 JSSlot 类型,优先传入相对应的 slotNode
|
||||
if (isJSSlot(val)) {
|
||||
node = node.getProp(key)?.slotNode || node;
|
||||
}
|
||||
newProps[key] = compatibleReducer(val, node);
|
||||
});
|
||||
return newProps;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user