mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:38:05 +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;
|
||||
}
|
||||
inited = true;
|
||||
const designer = await editor.onceGot(Designer);
|
||||
const designer = await editor.onceGot('designer');
|
||||
this.setupDesigner(designer);
|
||||
};
|
||||
|
||||
|
||||
@ -117,8 +117,12 @@ export default class ComponentMeta {
|
||||
* @param parent
|
||||
* @returns
|
||||
*/
|
||||
checkNestingDown(my: Node | NodeData, target: NodeSchema | Node | NodeSchema[]) {
|
||||
checkNestingDown(my: Node | NodeData, target: NodeSchema | Node | NodeSchema[]) {
|
||||
const curNode = my.isNode ? my[nodeSymbol] : my;
|
||||
return this[componentMetaSymbol].checkNestingDown(curNode as any, target[nodeSymbol] || target);
|
||||
}
|
||||
|
||||
refreshMetadata() {
|
||||
this[componentMetaSymbol].refreshMetadata();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user