@zhongguo168a/yxeditor-common 0.0.46 → 0.0.48
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.d.ts +5 -5
- package/dist/index.esm.js +7 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1057,11 +1057,11 @@ declare class RouteView extends EventDispatcher {
|
|
|
1057
1057
|
protected _waitCloseComplete: boolean;
|
|
1058
1058
|
get controller(): RouteController;
|
|
1059
1059
|
get route(): Route;
|
|
1060
|
-
onOpen(value: () => void): this;
|
|
1061
|
-
onOpened(value: () => void): this;
|
|
1062
|
-
onClose(value: () => void): this;
|
|
1063
|
-
onClosed(value: () => void): this;
|
|
1064
|
-
onRefresh(value: () => void): this;
|
|
1060
|
+
onOpen(value: (ctx: this) => void): this;
|
|
1061
|
+
onOpened(value: (ctx: this) => void): this;
|
|
1062
|
+
onClose(value: (ctx: this) => void): this;
|
|
1063
|
+
onClosed(value: (ctx: this) => void): this;
|
|
1064
|
+
onRefresh(value: (ctx: this) => void): this;
|
|
1065
1065
|
node: Node;
|
|
1066
1066
|
datas: {};
|
|
1067
1067
|
tags: {};
|
package/dist/index.esm.js
CHANGED
|
@@ -3872,7 +3872,7 @@ class RouteView extends EventDispatcher {
|
|
|
3872
3872
|
try {
|
|
3873
3873
|
//
|
|
3874
3874
|
if (this._onOpen) {
|
|
3875
|
-
this._onOpen
|
|
3875
|
+
this._onOpen(this);
|
|
3876
3876
|
}
|
|
3877
3877
|
// @ts-ignore
|
|
3878
3878
|
if (!this._waitOpenComplete) {
|
|
@@ -3898,7 +3898,7 @@ class RouteView extends EventDispatcher {
|
|
|
3898
3898
|
this.dispatch(ViewEvent.Closeing);
|
|
3899
3899
|
try {
|
|
3900
3900
|
if (this._onClose) {
|
|
3901
|
-
this._onClose
|
|
3901
|
+
this._onClose(this);
|
|
3902
3902
|
}
|
|
3903
3903
|
// @ts-ignore
|
|
3904
3904
|
if (!this._waitCloseComplete) {
|
|
@@ -3917,7 +3917,8 @@ class RouteView extends EventDispatcher {
|
|
|
3917
3917
|
refresh() {
|
|
3918
3918
|
try {
|
|
3919
3919
|
if (this._onRefresh) {
|
|
3920
|
-
this._onRefresh
|
|
3920
|
+
this._onRefresh(this);
|
|
3921
|
+
;
|
|
3921
3922
|
}
|
|
3922
3923
|
}
|
|
3923
3924
|
catch (e) {
|
|
@@ -3974,7 +3975,7 @@ class RouteView extends EventDispatcher {
|
|
|
3974
3975
|
// @ts-ignore
|
|
3975
3976
|
this._waitOpenComplete = false;
|
|
3976
3977
|
if (this._onOpened) {
|
|
3977
|
-
this._onOpened
|
|
3978
|
+
this._onOpened(this);
|
|
3978
3979
|
}
|
|
3979
3980
|
this.dispatch(ViewEvent.Opened);
|
|
3980
3981
|
}
|
|
@@ -3987,8 +3988,8 @@ class RouteView extends EventDispatcher {
|
|
|
3987
3988
|
this._waitCloseComplete = false;
|
|
3988
3989
|
this.state = ViewState.Closed;
|
|
3989
3990
|
this.dispatch(ViewEvent.Closed);
|
|
3990
|
-
if (this.
|
|
3991
|
-
this.
|
|
3991
|
+
if (this._onClosed) {
|
|
3992
|
+
this._onClosed(this);
|
|
3992
3993
|
}
|
|
3993
3994
|
}
|
|
3994
3995
|
get controller() {
|