fantasy-ngzorro 1.1.28 → 1.1.30
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/fantasy-ngzorro.umd.js +36 -18
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-table/hd-table.component.js +32 -15
- package/esm5/hd-table/hd-table.component.js +37 -19
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +31 -14
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +36 -18
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3546,6 +3546,9 @@
|
|
|
3546
3546
|
// 如果对象有 isShow 属性,则检查其值是否为 true
|
|
3547
3547
|
return item.isShow === true;
|
|
3548
3548
|
}));
|
|
3549
|
+
if (!this.tableCols || this.tableCols.length === 0) {
|
|
3550
|
+
return;
|
|
3551
|
+
}
|
|
3549
3552
|
this.userSession = this.commonSessionService.getSession('__jy_authorization_session__');
|
|
3550
3553
|
// 用于开发环境调试
|
|
3551
3554
|
if (!this.userSession) {
|
|
@@ -3566,6 +3569,39 @@
|
|
|
3566
3569
|
throw 'localforage加载异常';
|
|
3567
3570
|
}));
|
|
3568
3571
|
};
|
|
3572
|
+
/**
|
|
3573
|
+
* @param {?} changes
|
|
3574
|
+
* @return {?}
|
|
3575
|
+
*/
|
|
3576
|
+
HdTableComponent.prototype.ngOnChanges = /**
|
|
3577
|
+
* @param {?} changes
|
|
3578
|
+
* @return {?}
|
|
3579
|
+
*/
|
|
3580
|
+
function (changes) {
|
|
3581
|
+
var _this = this;
|
|
3582
|
+
// 数据改变时,重置勾选状态
|
|
3583
|
+
if (changes && changes['tableData'] && changes['tableData']['currentValue'] && changes['tableData']['previousValue']) {
|
|
3584
|
+
if (changes['tableData']['currentValue']['pageSize'] !== changes['tableData']['previousValue']['pageSize']
|
|
3585
|
+
|| changes['tableData']['currentValue']['pageNumber'] !== changes['tableData']['previousValue']['pageNumber']) {
|
|
3586
|
+
return;
|
|
3587
|
+
}
|
|
3588
|
+
this.resetStatus();
|
|
3589
|
+
}
|
|
3590
|
+
if (changes['tableCols'] && JSON.stringify(changes['tableCols'].currentValue) !== JSON.stringify(changes['tableCols'].previousValue)) {
|
|
3591
|
+
this.localforage.ready().then((/**
|
|
3592
|
+
* @return {?}
|
|
3593
|
+
*/
|
|
3594
|
+
function () {
|
|
3595
|
+
_this.getInitLocalforage();
|
|
3596
|
+
})).catch((/**
|
|
3597
|
+
* @param {?} e
|
|
3598
|
+
* @return {?}
|
|
3599
|
+
*/
|
|
3600
|
+
function (e) {
|
|
3601
|
+
throw 'localforage加载异常';
|
|
3602
|
+
}));
|
|
3603
|
+
}
|
|
3604
|
+
};
|
|
3569
3605
|
/**
|
|
3570
3606
|
* @param {?} sort
|
|
3571
3607
|
* @return {?}
|
|
@@ -4182,24 +4218,6 @@
|
|
|
4182
4218
|
document.body.removeChild(span);
|
|
4183
4219
|
return isOverflow;
|
|
4184
4220
|
};
|
|
4185
|
-
/**
|
|
4186
|
-
* @param {?} changes
|
|
4187
|
-
* @return {?}
|
|
4188
|
-
*/
|
|
4189
|
-
HdTableComponent.prototype.ngOnChanges = /**
|
|
4190
|
-
* @param {?} changes
|
|
4191
|
-
* @return {?}
|
|
4192
|
-
*/
|
|
4193
|
-
function (changes) {
|
|
4194
|
-
// 数据改变时,重置勾选状态
|
|
4195
|
-
if (changes && changes['tableData'] && changes['tableData']['currentValue'] && changes['tableData']['previousValue']) {
|
|
4196
|
-
if (changes['tableData']['currentValue']['pageSize'] !== changes['tableData']['previousValue']['pageSize']
|
|
4197
|
-
|| changes['tableData']['currentValue']['pageNumber'] !== changes['tableData']['previousValue']['pageNumber']) {
|
|
4198
|
-
return;
|
|
4199
|
-
}
|
|
4200
|
-
this.resetStatus();
|
|
4201
|
-
}
|
|
4202
|
-
};
|
|
4203
4221
|
// 表格勾选逻辑
|
|
4204
4222
|
// 表格勾选逻辑
|
|
4205
4223
|
/**
|