Merge pull request #1737 from SergioCrisostomo/fix-broken-reduce
Add counter start to reduce
This commit is contained in:
commit
2c75c88169
1 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@
|
|||
this.$nextTick(() => {
|
||||
const allWidth = !this.columns.some(cell => !cell.width); // each column set a width
|
||||
if (allWidth) {
|
||||
this.tableWidth = this.columns.map(cell => cell.width).reduce((a, b) => a + b);
|
||||
this.tableWidth = this.columns.map(cell => cell.width).reduce((a, b) => a + b, 0);
|
||||
} else {
|
||||
this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1;
|
||||
}
|
||||
|
@ -438,7 +438,7 @@
|
|||
// }else{
|
||||
// this.objData[data._index]._isChecked = status;
|
||||
// }
|
||||
|
||||
|
||||
// });
|
||||
for(const data of this.rebuildData){
|
||||
if(this.objData[data._index]._isDisabled){
|
||||
|
|
Loading…
Add table
Reference in a new issue