fixed-head
This commit is contained in:
parent
3f14387d1a
commit
c1e965c371
4 changed files with 37 additions and 27 deletions
|
@ -87,7 +87,8 @@
|
|||
type: [Boolean, String],
|
||||
default: false
|
||||
},
|
||||
columnRows: Array
|
||||
columnRows: Array,
|
||||
fixedColumnRows: Array
|
||||
},
|
||||
computed: {
|
||||
styles () {
|
||||
|
@ -116,7 +117,11 @@
|
|||
},
|
||||
headRows () {
|
||||
const isGroup = this.columnRows.length > 1;
|
||||
return isGroup ? this.columnRows : [this.columns];
|
||||
if (isGroup) {
|
||||
return this.fixed ? this.fixedColumnRows : this.columnRows;
|
||||
} else {
|
||||
return [this.columns];
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue