MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / open

Method open

packages/designer/src/document/document-model.ts:635–647  ·  view source on GitHub ↗

* 打开,已载入,默认建立时就打开状态,除非手动关闭

()

Source from the content-addressed store, hash-verified

633 * 打开,已载入,默认建立时就打开状态,除非手动关闭
634 */
635 open(): DocumentModel {
636 const originState = this._opened;
637 this._opened = true;
638 if (originState === false) {
639 this.designer.postEvent('document-open', this);
640 }
641 if (this._suspensed) {
642 this.setSuspense(false);
643 } else {
644 this.project.checkExclusive(this);
645 }
646 return this;
647 }
648
649 /**
650 * 关闭,相当于 sleep,仍然缓存,停止一切响应,如果有发生的变更没被保存,仍然需要去取数据保存

Callers

nothing calls this directly

Calls 3

setSuspenseMethod · 0.95
postEventMethod · 0.65
checkExclusiveMethod · 0.65

Tested by

no test coverage detected