From 4fd4d763839cdf07b4a0065d7d1a17b4b73bc454 Mon Sep 17 00:00:00 2001 From: huanghong Date: Mon, 16 Apr 2018 23:55:49 +0800 Subject: [PATCH] remove console log --- src/components/table/table.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 9359c1b..60ddadb 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -374,7 +374,6 @@ let unUsableWidth = hasWidthColumns.map(cell => cell.width).reduce((a, b) => a + b, 0); - console.log(tableWidth); let usableWidth = tableWidth - unUsableWidth - sumMinWidth - (this.showVerticalScrollBar?this.scrollBarWidth:0); let usableLength = noWidthColumns.length; let columnWidth = 0; @@ -447,9 +446,8 @@ } } - //this.tableWidth = this.cloneColumns.map(cell => cell._width).reduce((a, b) => a + b, 0); + this.tableWidth = this.cloneColumns.map(cell => cell._width).reduce((a, b) => a + b, 0) + (this.showVerticalScrollBar?this.scrollBarWidth:0); - console.log(this.tableWidth); this.columnsWidth = columnsWidth; this.fixedHeader(); }, -- libgit2 0.21.4