update Table

update Table
This commit is contained in:
梁灏 2016-11-27 15:44:32 +08:00
parent 39947c1474
commit 340681ab50
4 changed files with 6 additions and 13 deletions

View file

@ -179,6 +179,7 @@
this.columnsWidth = [];
let autoWidthIndex = -1;
if (allWidth) autoWidthIndex = this.cloneColumns.findIndex(cell => !cell.width);
console.log(1)
const $td = this.$refs.tbody.$el.querySelectorAll('tbody tr')[0].querySelectorAll('td');
for (let i = 0; i < $td.length; i++) { // can not use forEach in Firefox
@ -328,6 +329,7 @@
},
columns: {
handler () {
this.cloneColumns = deepCopy(this.columns);
this.parseColumns();
this.handleResize();
},