@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.
- package/bundles/yibozhang-pro-table.umd.js +12 -3
- package/bundles/yibozhang-pro-table.umd.js.map +1 -1
- package/bundles/yibozhang-pro-table.umd.min.js +1 -1
- package/bundles/yibozhang-pro-table.umd.min.js.map +1 -1
- package/esm2015/lib/pro-table.component.js +5 -1
- package/esm2015/lib/utils/modal-width-detector.js +3 -3
- package/esm2015/public-api.js +3 -3
- package/fesm2015/yibozhang-pro-table.js +7 -3
- package/fesm2015/yibozhang-pro-table.js.map +1 -1
- package/lib/pro-table.component.d.ts.map +1 -1
- package/lib/utils/modal-width-detector.d.ts +5 -0
- package/lib/utils/modal-width-detector.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/public-api.d.ts.map +1 -1
- package/yibozhang-pro-table.metadata.json +1 -1
|
@@ -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:
|
|
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
|
-
|
|
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;
|