fantasy-ngzorro 1.1.31 → 1.1.33
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 +34 -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-detail-form/hd-detail-form.component.js +7 -1
- package/esm2015/hd-table/hd-table.component.js +24 -14
- package/esm2015/model/common-type.js +3 -1
- package/esm5/hd-detail-form/hd-detail-form.component.js +7 -1
- package/esm5/hd-table/hd-table.component.js +27 -14
- package/esm5/model/common-type.js +3 -1
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +31 -13
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +34 -13
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-table/hd-table.component.d.ts +1 -0
- package/model/common-type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -452,6 +452,12 @@
|
|
|
452
452
|
* @return {?}
|
|
453
453
|
*/
|
|
454
454
|
function () {
|
|
455
|
+
// 剔除掉formCols里面不需要显示的内容
|
|
456
|
+
this.formCols = this.formCols.filter((/**
|
|
457
|
+
* @param {?} item
|
|
458
|
+
* @return {?}
|
|
459
|
+
*/
|
|
460
|
+
function (item) { return !item.hide; }));
|
|
455
461
|
};
|
|
456
462
|
HdDetailFormComponent.decorators = [
|
|
457
463
|
{ type: core.Component, args: [{
|
|
@@ -542,6 +548,8 @@
|
|
|
542
548
|
HdOption.prototype.value;
|
|
543
549
|
/** @type {?} */
|
|
544
550
|
HdOption.prototype.color;
|
|
551
|
+
/** @type {?} */
|
|
552
|
+
HdOption.prototype.hide;
|
|
545
553
|
}
|
|
546
554
|
var SelectOption = /** @class */ (function () {
|
|
547
555
|
function SelectOption() {
|
|
@@ -3540,19 +3548,7 @@
|
|
|
3540
3548
|
userCode: 'dev'
|
|
3541
3549
|
};
|
|
3542
3550
|
}
|
|
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
|
-
}));
|
|
3551
|
+
this.deleteHideItem();
|
|
3556
3552
|
if (!this.tableCols || this.tableCols.length === 0) {
|
|
3557
3553
|
return;
|
|
3558
3554
|
}
|
|
@@ -3589,6 +3585,10 @@
|
|
|
3589
3585
|
this.resetStatus();
|
|
3590
3586
|
}
|
|
3591
3587
|
if (changes['tableCols'] && JSON.stringify(changes['tableCols'].currentValue) !== JSON.stringify(changes['tableCols'].previousValue)) {
|
|
3588
|
+
this.deleteHideItem();
|
|
3589
|
+
if (!this.tableCols || this.tableCols.length === 0) {
|
|
3590
|
+
return;
|
|
3591
|
+
}
|
|
3592
3592
|
this.localforage.ready().then((/**
|
|
3593
3593
|
* @return {?}
|
|
3594
3594
|
*/
|
|
@@ -3604,6 +3604,27 @@
|
|
|
3604
3604
|
}));
|
|
3605
3605
|
}
|
|
3606
3606
|
};
|
|
3607
|
+
/**
|
|
3608
|
+
* @return {?}
|
|
3609
|
+
*/
|
|
3610
|
+
HdTableComponent.prototype.deleteHideItem = /**
|
|
3611
|
+
* @return {?}
|
|
3612
|
+
*/
|
|
3613
|
+
function () {
|
|
3614
|
+
// 首先把isShow为false数据剔除掉
|
|
3615
|
+
this.tableCols = this.tableCols.filter((/**
|
|
3616
|
+
* @param {?} item
|
|
3617
|
+
* @return {?}
|
|
3618
|
+
*/
|
|
3619
|
+
function (item) {
|
|
3620
|
+
// 如果对象没有 isShow 属性,则默认为 true,保留该对象
|
|
3621
|
+
if (!item.hasOwnProperty('isShow')) {
|
|
3622
|
+
return true;
|
|
3623
|
+
}
|
|
3624
|
+
// 如果对象有 isShow 属性,则检查其值是否为 true
|
|
3625
|
+
return item.isShow === true;
|
|
3626
|
+
}));
|
|
3627
|
+
};
|
|
3607
3628
|
/**
|
|
3608
3629
|
* @param {?} sort
|
|
3609
3630
|
* @return {?}
|