fantasy-ngzorro 1.1.31 → 1.1.32
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 +26 -13
- 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 +24 -14
- package/esm5/hd-table/hd-table.component.js +27 -14
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +23 -13
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +26 -13
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3540,19 +3540,7 @@
|
|
|
3540
3540
|
userCode: 'dev'
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
|
-
|
|
3544
|
-
this.tableCols = this.tableCols.filter((/**
|
|
3545
|
-
* @param {?} item
|
|
3546
|
-
* @return {?}
|
|
3547
|
-
*/
|
|
3548
|
-
function (item) {
|
|
3549
|
-
// 如果对象没有 isShow 属性,则默认为 true,保留该对象
|
|
3550
|
-
if (!item.hasOwnProperty('isShow')) {
|
|
3551
|
-
return true;
|
|
3552
|
-
}
|
|
3553
|
-
// 如果对象有 isShow 属性,则检查其值是否为 true
|
|
3554
|
-
return item.isShow === true;
|
|
3555
|
-
}));
|
|
3543
|
+
this.deleteHideItem();
|
|
3556
3544
|
if (!this.tableCols || this.tableCols.length === 0) {
|
|
3557
3545
|
return;
|
|
3558
3546
|
}
|
|
@@ -3589,6 +3577,10 @@
|
|
|
3589
3577
|
this.resetStatus();
|
|
3590
3578
|
}
|
|
3591
3579
|
if (changes['tableCols'] && JSON.stringify(changes['tableCols'].currentValue) !== JSON.stringify(changes['tableCols'].previousValue)) {
|
|
3580
|
+
this.deleteHideItem();
|
|
3581
|
+
if (!this.tableCols || this.tableCols.length === 0) {
|
|
3582
|
+
return;
|
|
3583
|
+
}
|
|
3592
3584
|
this.localforage.ready().then((/**
|
|
3593
3585
|
* @return {?}
|
|
3594
3586
|
*/
|
|
@@ -3604,6 +3596,27 @@
|
|
|
3604
3596
|
}));
|
|
3605
3597
|
}
|
|
3606
3598
|
};
|
|
3599
|
+
/**
|
|
3600
|
+
* @return {?}
|
|
3601
|
+
*/
|
|
3602
|
+
HdTableComponent.prototype.deleteHideItem = /**
|
|
3603
|
+
* @return {?}
|
|
3604
|
+
*/
|
|
3605
|
+
function () {
|
|
3606
|
+
// 首先把isShow为false数据剔除掉
|
|
3607
|
+
this.tableCols = this.tableCols.filter((/**
|
|
3608
|
+
* @param {?} item
|
|
3609
|
+
* @return {?}
|
|
3610
|
+
*/
|
|
3611
|
+
function (item) {
|
|
3612
|
+
// 如果对象没有 isShow 属性,则默认为 true,保留该对象
|
|
3613
|
+
if (!item.hasOwnProperty('isShow')) {
|
|
3614
|
+
return true;
|
|
3615
|
+
}
|
|
3616
|
+
// 如果对象有 isShow 属性,则检查其值是否为 true
|
|
3617
|
+
return item.isShow === true;
|
|
3618
|
+
}));
|
|
3619
|
+
};
|
|
3607
3620
|
/**
|
|
3608
3621
|
* @param {?} sort
|
|
3609
3622
|
* @return {?}
|