mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-24 18:58:11 +00:00
fix: 🐛 error when quick search
This commit is contained in:
parent
242ec93e48
commit
801d954417
@ -41,7 +41,6 @@ export class DocumentModel {
|
|||||||
private seqId = 0;
|
private seqId = 0;
|
||||||
private _simulator?: ISimulatorHost;
|
private _simulator?: ISimulatorHost;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模拟器
|
* 模拟器
|
||||||
*/
|
*/
|
||||||
@ -119,7 +118,6 @@ export class DocumentModel {
|
|||||||
// return this.addonsData[name];
|
// return this.addonsData[name];
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成唯一id
|
* 生成唯一id
|
||||||
*/
|
*/
|
||||||
@ -240,12 +238,12 @@ export class DocumentModel {
|
|||||||
node.remove();
|
node.remove();
|
||||||
}
|
}
|
||||||
getAddonData(name: string) {
|
getAddonData(name: string) {
|
||||||
const addon = this.getNode(name)
|
const addon = this.getNode(name);
|
||||||
if (addon) {
|
if (addon) {
|
||||||
// 无法确定是否有这个api
|
// 无法确定是否有这个api
|
||||||
// return addon.exportData();
|
// return addon.exportData();
|
||||||
}
|
}
|
||||||
return addon
|
return addon;
|
||||||
}
|
}
|
||||||
|
|
||||||
@obx.ref private _dropLocation: DropLocation | null = null;
|
@obx.ref private _dropLocation: DropLocation | null = null;
|
||||||
@ -485,7 +483,8 @@ export class DocumentModel {
|
|||||||
|
|
||||||
// add toData
|
// add toData
|
||||||
toData() {
|
toData() {
|
||||||
return { componentsTree: [this.project?.currentDocument?.export(TransformStage.Save)] };
|
const node = this.project?.currentDocument?.export(TransformStage.Serilize);
|
||||||
|
return { componentsTree: [node] };
|
||||||
}
|
}
|
||||||
|
|
||||||
getHistory(): History {
|
getHistory(): History {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user