bri-components 1.3.65 → 1.3.66
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/package.json
CHANGED
|
@@ -686,7 +686,11 @@
|
|
|
686
686
|
);
|
|
687
687
|
}, [])
|
|
688
688
|
.concat(
|
|
689
|
-
subForm.
|
|
689
|
+
subForm.filter(subFormItem =>
|
|
690
|
+
this.hideStatus === true
|
|
691
|
+
? !this.hideColKeys.includes(subFormItem._key)
|
|
692
|
+
: true
|
|
693
|
+
).map(subFormItem => (
|
|
690
694
|
{
|
|
691
695
|
...subFormItem,
|
|
692
696
|
nodeKey: treeForm[treeForm.length - 1]._key,
|
|
@@ -73,10 +73,10 @@ export default {
|
|
|
73
73
|
: ""
|
|
74
74
|
}` +
|
|
75
75
|
`${this.isSearching
|
|
76
|
-
?
|
|
76
|
+
? row.__isSearchShow__ === false
|
|
77
77
|
? " bri-table-td-hide"
|
|
78
78
|
: ""
|
|
79
|
-
:
|
|
79
|
+
: row.__isShow__ === false
|
|
80
80
|
? " bri-table-td-hide"
|
|
81
81
|
: this.isExpandAction
|
|
82
82
|
? " bri-table-td-visible"
|
|
@@ -405,7 +405,7 @@ export default {
|
|
|
405
405
|
: ""
|
|
406
406
|
}` +
|
|
407
407
|
`${this.isSearching
|
|
408
|
-
?
|
|
408
|
+
? row.__isSearchShow__ === false
|
|
409
409
|
? " bri-table-td-hide"
|
|
410
410
|
: ""
|
|
411
411
|
: ""
|
|
@@ -670,10 +670,12 @@ export default {
|
|
|
670
670
|
|
|
671
671
|
/* ----------- 隐藏/显示字段 ---------- */
|
|
672
672
|
toggleHideOrShow () {
|
|
673
|
-
if (this
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
673
|
+
if (this.$refs["briTable"]) {
|
|
674
|
+
if (this.hideStatus === true) {
|
|
675
|
+
this.$refs["briTable"].showColumnsByKeys(this.hideColKeys);
|
|
676
|
+
} else {
|
|
677
|
+
this.$refs["briTable"].hideColumnsByKeys(this.hideColKeys);
|
|
678
|
+
}
|
|
677
679
|
}
|
|
678
680
|
|
|
679
681
|
this.hideStatus = !this.hideStatus;
|