@zhongguo168a/yxeditor-common 0.0.36 → 0.0.38
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 +3 -3
- package/dist/index.esm.js +6 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1102,7 +1102,7 @@ declare class ViewRepo extends ViewDict {
|
|
|
1102
1102
|
declare const viewrepo: ViewRepo;
|
|
1103
1103
|
|
|
1104
1104
|
declare class ViewController extends Controller {
|
|
1105
|
-
constructor(
|
|
1105
|
+
constructor(routeName: string);
|
|
1106
1106
|
/**
|
|
1107
1107
|
* 当视图需要通过路由打开时,需要实现此方法
|
|
1108
1108
|
* @param route
|
|
@@ -1156,10 +1156,10 @@ declare class ViewController extends Controller {
|
|
|
1156
1156
|
declare class ViewHistory extends RouteList {
|
|
1157
1157
|
back(): void;
|
|
1158
1158
|
}
|
|
1159
|
-
declare const viewhistorys:
|
|
1159
|
+
declare const viewhistorys: ViewHistory;
|
|
1160
1160
|
|
|
1161
1161
|
declare class PageController extends ViewController {
|
|
1162
|
-
constructor(
|
|
1162
|
+
constructor(routeName: string);
|
|
1163
1163
|
/**
|
|
1164
1164
|
* 打开视图,如果视图已经存在则刷新视图
|
|
1165
1165
|
* @param route
|
package/dist/index.esm.js
CHANGED
|
@@ -3828,11 +3828,11 @@ class ViewRepo extends ViewDict {
|
|
|
3828
3828
|
const viewrepo = new ViewRepo();
|
|
3829
3829
|
|
|
3830
3830
|
class ViewController extends Controller {
|
|
3831
|
-
constructor(
|
|
3832
|
-
super(
|
|
3831
|
+
constructor(routeName) {
|
|
3832
|
+
super(routeName);
|
|
3833
3833
|
this._enableHistory = false;
|
|
3834
3834
|
this._tags = {};
|
|
3835
|
-
this._route =
|
|
3835
|
+
this._route = new Route(routeName);
|
|
3836
3836
|
}
|
|
3837
3837
|
/**
|
|
3838
3838
|
* 当视图需要通过路由打开时,需要实现此方法
|
|
@@ -4052,11 +4052,11 @@ class ViewHistory extends RouteList {
|
|
|
4052
4052
|
viewrepo.open(viewhistorys.last());
|
|
4053
4053
|
}
|
|
4054
4054
|
}
|
|
4055
|
-
const viewhistorys = new
|
|
4055
|
+
const viewhistorys = new ViewHistory();
|
|
4056
4056
|
|
|
4057
4057
|
class PageController extends ViewController {
|
|
4058
|
-
constructor(
|
|
4059
|
-
super(
|
|
4058
|
+
constructor(routeName) {
|
|
4059
|
+
super(routeName);
|
|
4060
4060
|
this._enableHistory = false;
|
|
4061
4061
|
this._layer = "";
|
|
4062
4062
|
}
|