publish 0.9.9-rc-3
fixed Table width bug when resize window
This commit is contained in:
parent
5e7a3b293b
commit
224a3ae539
6 changed files with 44 additions and 23 deletions
|
@ -11,8 +11,16 @@ export default {
|
|||
isPopperShow (column) {
|
||||
return column.filters && ((!this.fixed && !column.fixed) || (this.fixed === 'left' && column.fixed === 'left') || (this.fixed === 'right' && column.fixed === 'right'));
|
||||
},
|
||||
setCellWidth (index) {
|
||||
return this.column[index].width ? this.column.width : this.columnsWidth[index];
|
||||
setCellWidth (column, index) {
|
||||
// return column.width ? column.width : this.columnsWidth[index];
|
||||
let width = '';
|
||||
if (column.width) {
|
||||
width = column.width;
|
||||
} else if (this.columnsWidth[column._index]) {
|
||||
width = this.columnsWidth[column._index].width
|
||||
}
|
||||
// return this.columnsWidth[column._index] ? this.columnsWidth[column._index].width : '';
|
||||
return width;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue