From b464ef9e23addf924ead83ebca75c31b1f33911e Mon Sep 17 00:00:00 2001 From: wanghaoo Date: Fri, 14 Sep 2018 13:54:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8D=83=E8=A1=8C=E5=90=AB=E6=9C=89?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E5=88=97=E7=9A=84=E4=BC=98=E5=8C=96):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/Table.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/Table.js b/build/Table.js index c27d2da..3ba7001 100644 --- a/build/Table.js +++ b/build/Table.js @@ -264,7 +264,8 @@ var Table = function (_Component) { this.contentWidth = numSetWidthParam; } else { //计算总表格宽度、根据表格宽度和各列的宽度和比较,重置最后一列 - this.contentWidth = this.contentTable.getBoundingClientRect().width; //表格宽度 + this.contentDomWidth = this.contentTable.getBoundingClientRect().width; //表格容器宽度 + this.contentWidth = this.contentDomWidth; //默认与容器宽度一样 if (typeof setWidthParam == 'string' && setWidthParam.indexOf('%')) { this.contentWidth = this.contentWidth * parseInt(setWidthParam) / 100; } diff --git a/package.json b/package.json index 6484daf..a8c3bb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bee-table", - "version": "1.4.0", + "version": "1.4.1", "description": "Table ui component for react", "keywords": [ "react",