mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
Merge branch 'release/0.9.12' into fix/lihao-bugs-200824
This commit is contained in:
commit
fe0fa8ea0b
@ -461,7 +461,7 @@ export class DocumentModel {
|
||||
* 从项目中移除
|
||||
*/
|
||||
remove() {
|
||||
// this.project.removeDocument(this);
|
||||
this.project.removeDocument(this);
|
||||
// todo: ...
|
||||
}
|
||||
|
||||
|
||||
@ -69,6 +69,14 @@ export class Project {
|
||||
this.documents.forEach((doc) => doc.remove());
|
||||
}
|
||||
|
||||
removeDocument(doc: DocumentModel) {
|
||||
const index = this.documents.indexOf(doc);
|
||||
if (index < 0) {
|
||||
return;
|
||||
}
|
||||
this.documents.splice(index, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 分字段设置储存数据,不记录操作记录
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user