@zhongguo168a/yxeditor-common 0.0.23 → 0.0.25

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
@@ -1014,7 +1014,7 @@ declare class PageController extends Controller {
1014
1014
  enableHistory?: boolean;
1015
1015
  });
1016
1016
  open(...args: any[]): void;
1017
- close(): void;
1017
+ close(...args: any[]): void;
1018
1018
  protected onOpening(page: Page): void;
1019
1019
  protected onOpened(page: Page): void;
1020
1020
  protected onClosing(page: Page): void;
package/dist/index.esm.js CHANGED
@@ -3789,10 +3789,10 @@ class PageRepo extends PageList {
3789
3789
  this._history = [];
3790
3790
  this._ctrlDict = new ControllerDict();
3791
3791
  this.onSet(this, (item) => {
3792
- this._indexRoute[item.route.path] = item;
3792
+ this._indexRoute[item.route.key] = item;
3793
3793
  });
3794
3794
  this.onDelete(this, (item) => {
3795
- delete this._indexRoute[item.route.path];
3795
+ delete this._indexRoute[item.route.key];
3796
3796
  });
3797
3797
  }
3798
3798
  openByString(route) {
@@ -3837,7 +3837,7 @@ class PageRepo extends PageList {
3837
3837
  this.open(this._history.pop());
3838
3838
  }
3839
3839
  getByRoute(route) {
3840
- return this._indexRoute[route.path];
3840
+ return this._indexRoute[route.key];
3841
3841
  }
3842
3842
  listByTags(tags) {
3843
3843
  let list = new PageList();
@@ -3902,7 +3902,7 @@ class PageController extends Controller {
3902
3902
  }
3903
3903
  open(...args) {
3904
3904
  }
3905
- close() {
3905
+ close(...args) {
3906
3906
  }
3907
3907
  onOpening(page) {
3908
3908
  }