fixed-head

This commit is contained in:
梁灏 2018-03-23 17:35:19 +08:00
parent 3f14387d1a
commit c1e965c371
4 changed files with 37 additions and 27 deletions

View file

@ -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: {