fixed table

This commit is contained in:
huanghong 2018-03-21 16:23:17 +08:00
parent 408b695046
commit c1115edd1a
2 changed files with 4 additions and 4 deletions

View file

@ -32,8 +32,8 @@ export default {
}
// when fixed type,reset first right fixed column's width
if (this.fixed === 'right' && top ) {
const firstFixedIndex = this.columns.findIndex((col) => col.fixed === 'right');
if (firstFixedIndex === index) {
//const firstFixedIndex = this.columns.findIndex((col) => col.fixed === 'right');
if (this.columns.length === index + 1) {
let scrollBarWidth = this.$parent.scrollBarWidth;
if (!this.$parent.showVerticalScrollBar) scrollBarWidth = 0;
width += scrollBarWidth;