Fixed #2310 - Colspan defect with hidden Columns

pull/2311/head
Tuğçe Küçükoğlu 2022-03-14 15:01:01 +03:00
parent a29f3d78b4
commit 30e08a9dee
1 changed files with 7 additions and 1 deletions

View File

@ -505,7 +505,13 @@ export default {
},
computed: {
columnsLength() {
return this.columns ? this.columns.length : 0;
let hiddenColLength = 0;
this.columns.forEach(column => {
if(this.columnProp(column, 'hidden')) hiddenColLength++;
});
return this.columns ? this.columns.length - hiddenColLength : 0;
},
rowGroupHeaderStyle() {
if (this.scrollable) {