Skip to content

Commit 5e287bc

Browse files
author
yinchun.liu
committed
fix: 底部及头部汇总去掉this.headSum[item.key] !== undefined 限制
1 parent 4df9201 commit 5e287bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tableFoot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default {
9191
return this.onlyFixed && (item.fixed !== this.onlyFixed);
9292
},
9393
shouldRender(item) {
94-
return this.sum[item.key] !== undefined && !this.isHidden(item)
94+
return !this.isHidden(item)
9595
},
9696
isInvisible(col) { // 非固定层的固定列应不可见
9797
return col.fixed && !this.onlyFixed;

src/tableSum.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default {
8989
return this.onlyFixed && (item.fixed !== this.onlyFixed);
9090
},
9191
shouldRender(item) {
92-
return this.headSum[item.key] !== undefined && !this.isHidden(item)
92+
return !this.isHidden(item)
9393
},
9494
isInvisible(col) { // 非固定层的固定列应不可见
9595
return col.fixed && !this.onlyFixed;

0 commit comments

Comments
 (0)