@zhongguo168a/yxeditor-common 0.0.28 → 0.0.29
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 +18 -14
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3963,20 +3963,24 @@ class ViewController extends Controller {
|
|
|
3963
3963
|
view.state = ViewState.Opening;
|
|
3964
3964
|
view.dispatch(ViewEvent.Opening);
|
|
3965
3965
|
//
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3966
|
+
try {
|
|
3967
|
+
viewrepo.push(view);
|
|
3968
|
+
this.onOpening(view);
|
|
3969
|
+
// @ts-ignore
|
|
3970
|
+
if (!view._waitOpenComplete) {
|
|
3971
|
+
// 没有被打断,打开完成
|
|
3972
|
+
this.openComplete(view);
|
|
3973
|
+
}
|
|
3974
|
+
else {
|
|
3975
|
+
// 被打断了,等待完成1
|
|
3976
|
+
}
|
|
3977
|
+
}
|
|
3978
|
+
catch (e) {
|
|
3979
|
+
console.error(`open view ${view.route.key}`);
|
|
3980
|
+
console.error(e.stack);
|
|
3981
|
+
//
|
|
3982
|
+
this.closeView(view);
|
|
3983
|
+
}
|
|
3980
3984
|
}
|
|
3981
3985
|
openComplete(view) {
|
|
3982
3986
|
if (!view) {
|