mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-13 12:13:10 +00:00
Merge pull request #486 from alibaba/fix/outline-tree
fix: fix outline-tree initialization failed
This commit is contained in:
commit
623a1b46c2
@ -60,7 +60,7 @@ export class OutlineMain implements ISensor, ITreeBoard, IScrollable {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
inited = true;
|
inited = true;
|
||||||
const designer = await editor.onceGot(Designer);
|
const designer = await editor.onceGot('designer');
|
||||||
this.setupDesigner(designer);
|
this.setupDesigner(designer);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -117,8 +117,12 @@ export default class ComponentMeta {
|
|||||||
* @param parent
|
* @param parent
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
checkNestingDown(my: Node | NodeData, target: NodeSchema | Node | NodeSchema[]) {
|
checkNestingDown(my: Node | NodeData, target: NodeSchema | Node | NodeSchema[]) {
|
||||||
const curNode = my.isNode ? my[nodeSymbol] : my;
|
const curNode = my.isNode ? my[nodeSymbol] : my;
|
||||||
return this[componentMetaSymbol].checkNestingDown(curNode as any, target[nodeSymbol] || target);
|
return this[componentMetaSymbol].checkNestingDown(curNode as any, target[nodeSymbol] || target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
refreshMetadata() {
|
||||||
|
this[componentMetaSymbol].refreshMetadata();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user