mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 09:41:57 +00:00
Merge branch 'feat/rax-simulator' of gitlab.alibaba-inc.com:ali-lowcode/ali-lowcode-engine into feat/rax-simulator
This commit is contained in:
commit
7081051547
@ -135,10 +135,6 @@ export class SimulatorRenderer implements BuiltinSimulatorRenderer {
|
||||
|
||||
getClosestNodeInstance(from: any, nodeId?: string): NodeInstance<any> | null {
|
||||
const node = getClosestNodeInstance(from, nodeId);
|
||||
if (node) {
|
||||
node.nodeId = (node as any).props?.componentId;
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
@ -405,7 +401,14 @@ function getNodeInstance(dom: HTMLElement): NodeInstance<any> | null {
|
||||
}
|
||||
instance = instance[INTERNAL].__parentInstance;
|
||||
}
|
||||
return parent;
|
||||
if (!parent) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
nodeId: parent.props.componentId,
|
||||
instance: parent
|
||||
}
|
||||
// return parent;
|
||||
// const instance = fiberNode.stateNode;
|
||||
// if (instance) {
|
||||
// console.log(instance);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user