@zhongguo168a/yxeditor-common 0.0.151 → 0.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +5 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4378,6 +4378,7 @@ class ViewModel extends EventDispatcher {
|
|
|
4378
4378
|
}
|
|
4379
4379
|
routeViews.set(route.key, this);
|
|
4380
4380
|
}
|
|
4381
|
+
this._result = false;
|
|
4381
4382
|
this.state = ViewState.Opening;
|
|
4382
4383
|
this.dispatch(ViewEvent.Opening);
|
|
4383
4384
|
//
|
|
@@ -4408,6 +4409,7 @@ class ViewModel extends EventDispatcher {
|
|
|
4408
4409
|
if (route) {
|
|
4409
4410
|
routeViews.delete(this._route.key);
|
|
4410
4411
|
}
|
|
4412
|
+
this._result = false;
|
|
4411
4413
|
this.state = ViewState.Closeing;
|
|
4412
4414
|
this.dispatch(ViewEvent.Closeing);
|
|
4413
4415
|
try {
|
|
@@ -4437,6 +4439,7 @@ class ViewModel extends EventDispatcher {
|
|
|
4437
4439
|
}
|
|
4438
4440
|
stop(reason) {
|
|
4439
4441
|
try {
|
|
4442
|
+
this._result = false;
|
|
4440
4443
|
this._reason = reason;
|
|
4441
4444
|
this.onStop();
|
|
4442
4445
|
}
|
|
@@ -4522,6 +4525,7 @@ class ViewModel extends EventDispatcher {
|
|
|
4522
4525
|
this.state = ViewState.Opened;
|
|
4523
4526
|
// @ts-ignore
|
|
4524
4527
|
this._waitOpenComplete = false;
|
|
4528
|
+
this._result = true;
|
|
4525
4529
|
this.onOpened();
|
|
4526
4530
|
this.dispatch(ViewEvent.Opened);
|
|
4527
4531
|
}
|
|
@@ -4535,6 +4539,7 @@ class ViewModel extends EventDispatcher {
|
|
|
4535
4539
|
}
|
|
4536
4540
|
routeViews.delete(this.getIdent());
|
|
4537
4541
|
this._waitCloseComplete = false;
|
|
4542
|
+
this._result = true;
|
|
4538
4543
|
this.state = ViewState.Closed;
|
|
4539
4544
|
this.dispatch(ViewEvent.Closed);
|
|
4540
4545
|
this.onClosed();
|