mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 09:47:20 +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];
|
// newProps[key] = props[key];
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
|
// 假如当前值是 JSSlot 类型,优先传入相对应的 slotNode
|
||||||
|
if (isJSSlot(val)) {
|
||||||
|
node = node.getProp(key)?.slotNode || node;
|
||||||
|
}
|
||||||
newProps[key] = compatibleReducer(val, node);
|
newProps[key] = compatibleReducer(val, node);
|
||||||
});
|
});
|
||||||
return newProps;
|
return newProps;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user