mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 04:40:32 +00:00
fix: documentModel toData 方法
This commit is contained in:
parent
8119c4c1bc
commit
1ea0d73d09
@ -461,14 +461,16 @@ export class DocumentModel {
|
|||||||
return config.checkNestingDown(parent, obj) && this.checkNestingUp(parent, obj);
|
return config.checkNestingDown(parent, obj) && this.checkNestingUp(parent, obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ======= compatibles
|
// ======= compatibles for vision
|
||||||
getRoot() {
|
getRoot() {
|
||||||
return this.rootNode;
|
return this.rootNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
// add toData
|
||||||
* 兼容vision
|
toData() {
|
||||||
*/
|
return { componentsTree: [this.project?.currentDocument?.export()] };
|
||||||
|
}
|
||||||
|
|
||||||
getHistory(): History {
|
getHistory(): History {
|
||||||
return this.history;
|
return this.history;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user