@zhongguo168a/yxeditor-common 0.0.94 → 0.0.95

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
@@ -1322,8 +1322,8 @@ declare class ViewModel extends EventDispatcher {
1322
1322
  * @param controller
1323
1323
  */
1324
1324
  useRoute(route: Route, controller: RouteController): void;
1325
- open(): void;
1326
- close(): void;
1325
+ open(): this;
1326
+ close(): this;
1327
1327
  refresh(): void;
1328
1328
  stop(reason?: LinkError): void;
1329
1329
  /**
package/dist/index.esm.js CHANGED
@@ -4319,6 +4319,7 @@ class ViewModel extends EventDispatcher {
4319
4319
  //
4320
4320
  this.close();
4321
4321
  }
4322
+ return this;
4322
4323
  }
4323
4324
  close() {
4324
4325
  if (this.state == ViewState.Closed) {
@@ -4344,6 +4345,7 @@ class ViewModel extends EventDispatcher {
4344
4345
  console.error(`close view ${this.toString()}`);
4345
4346
  console.error(e.stack);
4346
4347
  }
4348
+ return this;
4347
4349
  }
4348
4350
  refresh() {
4349
4351
  try {