@yibozhang/pro-table 0.1.4 → 0.1.6

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.
@@ -813,7 +813,15 @@
813
813
  console.log("一致");
814
814
  return [2 /*return*/, true];
815
815
  case 4: return [3 /*break*/, 6];
816
- case 5: return [2 /*return*/, false];
816
+ case 5:
817
+ if (res.code === 10) {
818
+ // code === 10 表示未初始化,需要继续执行后续逻辑
819
+ return [2 /*return*/, true];
820
+ }
821
+ else {
822
+ return [2 /*return*/, false];
823
+ }
824
+ _d.label = 6;
817
825
  case 6: return [2 /*return*/];
818
826
  }
819
827
  });
@@ -3524,7 +3532,7 @@
3524
3532
  * 自动检测 ant-modal-body 的宽度,并添加 narrow-width 类名
3525
3533
  * 当宽度小于 500px 时添加类名,否则移除
3526
3534
  */
3527
- (function initModalWidthDetector() {
3535
+ function initModalWidthDetector() {
3528
3536
  if (typeof window === 'undefined' || typeof document === 'undefined') {
3529
3537
  return;
3530
3538
  }
@@ -3584,7 +3592,7 @@
3584
3592
  checkElementWidth(element);
3585
3593
  observeResize(element);
3586
3594
  });
3587
- })();
3595
+ }
3588
3596
 
3589
3597
  /*
3590
3598
  * Public API Surface of pro-table
@@ -3607,6 +3615,7 @@
3607
3615
  exports.ProTableModule = ProTableModule;
3608
3616
  exports.TableSearchBarModule = TableSearchBarModule;
3609
3617
  exports.TrimInputModule = TrimInputModule;
3618
+ exports.initModalWidthDetector = initModalWidthDetector;
3610
3619
  exports["ɵ0"] = ɵ0;
3611
3620
  exports["ɵ1"] = ɵ1;
3612
3621
  exports["ɵ2"] = ɵ2;