update Table
update Table
This commit is contained in:
parent
39947c1474
commit
340681ab50
4 changed files with 6 additions and 13 deletions
|
@ -47,7 +47,6 @@
|
|||
[`${this.prefixCls}-row-highlight`]: this.cloneData[index] && this.cloneData[index]._isHighlight,
|
||||
[`${this.prefixCls}-row-hover`]: this.cloneData[index] && this.cloneData[index]._isHover
|
||||
}
|
||||
|
||||
]
|
||||
},
|
||||
setCellWidth (column, index) {
|
||||
|
|
|
@ -57,16 +57,6 @@
|
|||
selectAll () {
|
||||
const status = !this.isSelectAll;
|
||||
this.$parent.selectAll(status);
|
||||
|
||||
// let tmpData = deepCopy(this.cloneData);
|
||||
// tmpData.forEach((data) => {
|
||||
// data._isChecked = status;
|
||||
// });
|
||||
// this.cloneData = tmpData;
|
||||
//
|
||||
// if (status) {
|
||||
// this.$parent.selectAll();
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue