feat(千行含有固定列的优化):
This commit is contained in:
parent
0068267001
commit
b464ef9e23
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bee-table",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"description": "Table ui component for react",
|
||||
"keywords": [
|
||||
"react",
|
||||
|
|
Loading…
Reference in New Issue