* 打开,已载入,默认建立时就打开状态,除非手动关闭
()
| 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,仍然缓存,停止一切响应,如果有发生的变更没被保存,仍然需要去取数据保存 |
nothing calls this directly
no test coverage detected