Commit 4fd4d763839cdf07b4a0065d7d1a17b4b73bc454
1 parent
3f5e84a1
remove console log
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
src/components/table/table.vue
| @@ -374,7 +374,6 @@ | @@ -374,7 +374,6 @@ | ||
| 374 | 374 | ||
| 375 | 375 | ||
| 376 | let unUsableWidth = hasWidthColumns.map(cell => cell.width).reduce((a, b) => a + b, 0); | 376 | let unUsableWidth = hasWidthColumns.map(cell => cell.width).reduce((a, b) => a + b, 0); |
| 377 | - console.log(tableWidth); | ||
| 378 | let usableWidth = tableWidth - unUsableWidth - sumMinWidth - (this.showVerticalScrollBar?this.scrollBarWidth:0); | 377 | let usableWidth = tableWidth - unUsableWidth - sumMinWidth - (this.showVerticalScrollBar?this.scrollBarWidth:0); |
| 379 | let usableLength = noWidthColumns.length; | 378 | let usableLength = noWidthColumns.length; |
| 380 | let columnWidth = 0; | 379 | let columnWidth = 0; |
| @@ -447,9 +446,8 @@ | @@ -447,9 +446,8 @@ | ||
| 447 | 446 | ||
| 448 | } | 447 | } |
| 449 | } | 448 | } |
| 450 | - //this.tableWidth = this.cloneColumns.map(cell => cell._width).reduce((a, b) => a + b, 0); | 449 | + |
| 451 | this.tableWidth = this.cloneColumns.map(cell => cell._width).reduce((a, b) => a + b, 0) + (this.showVerticalScrollBar?this.scrollBarWidth:0); | 450 | this.tableWidth = this.cloneColumns.map(cell => cell._width).reduce((a, b) => a + b, 0) + (this.showVerticalScrollBar?this.scrollBarWidth:0); |
| 452 | - console.log(this.tableWidth); | ||
| 453 | this.columnsWidth = columnsWidth; | 451 | this.columnsWidth = columnsWidth; |
| 454 | this.fixedHeader(); | 452 | this.fixedHeader(); |
| 455 | }, | 453 | }, |