mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-02-28 04:40:32 +00:00
fix: 🐛 增加 getAddonData api
This commit is contained in:
parent
de50ebfd69
commit
68b7e29e3b
@ -41,6 +41,7 @@ export class DocumentModel {
|
|||||||
private seqId = 0;
|
private seqId = 0;
|
||||||
private _simulator?: ISimulatorHost;
|
private _simulator?: ISimulatorHost;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 模拟器
|
* 模拟器
|
||||||
*/
|
*/
|
||||||
@ -110,6 +111,14 @@ export class DocumentModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
readonly designer = this.project.designer;
|
readonly designer = this.project.designer;
|
||||||
|
// getAddonData(name: string) {
|
||||||
|
// const addon = this.addons.find((item) => item.name === name);
|
||||||
|
// if (addon) {
|
||||||
|
// return addon.exportData();
|
||||||
|
// }
|
||||||
|
// return this.addonsData[name];
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成唯一id
|
* 生成唯一id
|
||||||
@ -230,6 +239,14 @@ export class DocumentModel {
|
|||||||
this.selection.remove(node.id);
|
this.selection.remove(node.id);
|
||||||
node.remove();
|
node.remove();
|
||||||
}
|
}
|
||||||
|
getAddonData(name: string) {
|
||||||
|
const addon = this.getNode(name)
|
||||||
|
if (addon) {
|
||||||
|
// 无法确定是否有这个api
|
||||||
|
// return addon.exportData();
|
||||||
|
}
|
||||||
|
return addon
|
||||||
|
}
|
||||||
|
|
||||||
@obx.ref private _dropLocation: DropLocation | null = null;
|
@obx.ref private _dropLocation: DropLocation | null = null;
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user