@zhongguo168a/yxeditor-common 0.0.36 → 0.0.37

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 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(route: Route);
1105
+ constructor(routeName: string);
1106
1106
  /**
1107
1107
  * 当视图需要通过路由打开时,需要实现此方法
1108
1108
  * @param route
@@ -1159,7 +1159,7 @@ declare class ViewHistory extends RouteList {
1159
1159
  declare const viewhistorys: RouteList;
1160
1160
 
1161
1161
  declare class PageController extends ViewController {
1162
- constructor(route: Route);
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(route) {
3832
- super(route.path);
3831
+ constructor(routeName) {
3832
+ super(routeName);
3833
3833
  this._enableHistory = false;
3834
3834
  this._tags = {};
3835
- this._route = this.route;
3835
+ this._route = new Route(routeName);
3836
3836
  }
3837
3837
  /**
3838
3838
  * 当视图需要通过路由打开时,需要实现此方法
@@ -4055,8 +4055,8 @@ class ViewHistory extends RouteList {
4055
4055
  const viewhistorys = new RouteList();
4056
4056
 
4057
4057
  class PageController extends ViewController {
4058
- constructor(route) {
4059
- super(route);
4058
+ constructor(routeName) {
4059
+ super(routeName);
4060
4060
  this._enableHistory = false;
4061
4061
  this._layer = "";
4062
4062
  }