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",