fantasy-ngzorro 1.1.29 → 1.1.31
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 +42 -25
- 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 +38 -22
- package/esm5/hd-table/hd-table.component.js +43 -26
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +37 -21
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +42 -25
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3533,6 +3533,13 @@
|
|
|
3533
3533
|
*/
|
|
3534
3534
|
function () {
|
|
3535
3535
|
var _this = this;
|
|
3536
|
+
this.userSession = this.commonSessionService.getSession('__jy_authorization_session__');
|
|
3537
|
+
// 用于开发环境调试
|
|
3538
|
+
if (!this.userSession) {
|
|
3539
|
+
this.userSession = {
|
|
3540
|
+
userCode: 'dev'
|
|
3541
|
+
};
|
|
3542
|
+
}
|
|
3536
3543
|
// 首先把isShow为false数据剔除掉
|
|
3537
3544
|
this.tableCols = this.tableCols.filter((/**
|
|
3538
3545
|
* @param {?} item
|
|
@@ -3549,13 +3556,6 @@
|
|
|
3549
3556
|
if (!this.tableCols || this.tableCols.length === 0) {
|
|
3550
3557
|
return;
|
|
3551
3558
|
}
|
|
3552
|
-
this.userSession = this.commonSessionService.getSession('__jy_authorization_session__');
|
|
3553
|
-
// 用于开发环境调试
|
|
3554
|
-
if (!this.userSession) {
|
|
3555
|
-
this.userSession = {
|
|
3556
|
-
userCode: 'dev'
|
|
3557
|
-
};
|
|
3558
|
-
}
|
|
3559
3559
|
this.localforage.ready().then((/**
|
|
3560
3560
|
* @return {?}
|
|
3561
3561
|
*/
|
|
@@ -3566,9 +3566,44 @@
|
|
|
3566
3566
|
* @return {?}
|
|
3567
3567
|
*/
|
|
3568
3568
|
function (e) {
|
|
3569
|
+
console.log('localforage加载异常step1', e);
|
|
3569
3570
|
throw 'localforage加载异常';
|
|
3570
3571
|
}));
|
|
3571
3572
|
};
|
|
3573
|
+
/**
|
|
3574
|
+
* @param {?} changes
|
|
3575
|
+
* @return {?}
|
|
3576
|
+
*/
|
|
3577
|
+
HdTableComponent.prototype.ngOnChanges = /**
|
|
3578
|
+
* @param {?} changes
|
|
3579
|
+
* @return {?}
|
|
3580
|
+
*/
|
|
3581
|
+
function (changes) {
|
|
3582
|
+
var _this = this;
|
|
3583
|
+
// 数据改变时,重置勾选状态
|
|
3584
|
+
if (changes && changes['tableData'] && changes['tableData']['currentValue'] && changes['tableData']['previousValue']) {
|
|
3585
|
+
if (changes['tableData']['currentValue']['pageSize'] !== changes['tableData']['previousValue']['pageSize']
|
|
3586
|
+
|| changes['tableData']['currentValue']['pageNumber'] !== changes['tableData']['previousValue']['pageNumber']) {
|
|
3587
|
+
return;
|
|
3588
|
+
}
|
|
3589
|
+
this.resetStatus();
|
|
3590
|
+
}
|
|
3591
|
+
if (changes['tableCols'] && JSON.stringify(changes['tableCols'].currentValue) !== JSON.stringify(changes['tableCols'].previousValue)) {
|
|
3592
|
+
this.localforage.ready().then((/**
|
|
3593
|
+
* @return {?}
|
|
3594
|
+
*/
|
|
3595
|
+
function () {
|
|
3596
|
+
_this.getInitLocalforage();
|
|
3597
|
+
})).catch((/**
|
|
3598
|
+
* @param {?} e
|
|
3599
|
+
* @return {?}
|
|
3600
|
+
*/
|
|
3601
|
+
function (e) {
|
|
3602
|
+
console.log('localforage加载异常step2', e);
|
|
3603
|
+
throw 'localforage加载异常';
|
|
3604
|
+
}));
|
|
3605
|
+
}
|
|
3606
|
+
};
|
|
3572
3607
|
/**
|
|
3573
3608
|
* @param {?} sort
|
|
3574
3609
|
* @return {?}
|
|
@@ -4185,24 +4220,6 @@
|
|
|
4185
4220
|
document.body.removeChild(span);
|
|
4186
4221
|
return isOverflow;
|
|
4187
4222
|
};
|
|
4188
|
-
/**
|
|
4189
|
-
* @param {?} changes
|
|
4190
|
-
* @return {?}
|
|
4191
|
-
*/
|
|
4192
|
-
HdTableComponent.prototype.ngOnChanges = /**
|
|
4193
|
-
* @param {?} changes
|
|
4194
|
-
* @return {?}
|
|
4195
|
-
*/
|
|
4196
|
-
function (changes) {
|
|
4197
|
-
// 数据改变时,重置勾选状态
|
|
4198
|
-
if (changes && changes['tableData'] && changes['tableData']['currentValue'] && changes['tableData']['previousValue']) {
|
|
4199
|
-
if (changes['tableData']['currentValue']['pageSize'] !== changes['tableData']['previousValue']['pageSize']
|
|
4200
|
-
|| changes['tableData']['currentValue']['pageNumber'] !== changes['tableData']['previousValue']['pageNumber']) {
|
|
4201
|
-
return;
|
|
4202
|
-
}
|
|
4203
|
-
this.resetStatus();
|
|
4204
|
-
}
|
|
4205
|
-
};
|
|
4206
4223
|
// 表格勾选逻辑
|
|
4207
4224
|
// 表格勾选逻辑
|
|
4208
4225
|
/**
|