@zhongguo168a/yxeditor-common 0.0.141 → 0.0.143
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 +1 -1
- package/dist/index.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1352,7 +1352,7 @@ declare class ViewModel extends EventDispatcher {
|
|
|
1352
1352
|
/**
|
|
1353
1353
|
* 等待打开完成指令
|
|
1354
1354
|
*/
|
|
1355
|
-
waitOpenComplete(...params: any): Promise<
|
|
1355
|
+
waitOpenComplete(...params: any): Promise<any>;
|
|
1356
1356
|
protected openComplete(): void;
|
|
1357
1357
|
waitCloseComplete(): void;
|
|
1358
1358
|
closeComplete(): void;
|
package/dist/index.esm.js
CHANGED
|
@@ -4489,7 +4489,10 @@ class ViewModel extends EventDispatcher {
|
|
|
4489
4489
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4490
4490
|
this._waitOpenComplete = true;
|
|
4491
4491
|
for (const element of params) {
|
|
4492
|
-
yield element();
|
|
4492
|
+
let err = yield element();
|
|
4493
|
+
if (err) {
|
|
4494
|
+
return err;
|
|
4495
|
+
}
|
|
4493
4496
|
if (this.state == ViewState.Closed || this.state == ViewState.Closeing) {
|
|
4494
4497
|
return;
|
|
4495
4498
|
}
|