宽度不够自动补充

This commit is contained in:
wanghaoo 2018-10-11 14:03:38 +08:00
parent 99fb072b58
commit 24ae6dae46
3 changed files with 10 additions and 10 deletions

10
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -633,10 +633,10 @@ class Table extends Component {
tableStyle.width = this.contentWidth;
}
}
//自动出现滚动条
// if(this.contentDomWidth < this.contentWidth){
// tableStyle.width = this.contentWidth;
// }
// 自动出现滚动条
if(this.contentDomWidth > this.contentWidth){
tableStyle.width = this.contentDomWidth;
}
const tableBody = hasBody ? getBodyWrapper(
<tbody className={`${clsPrefix}-tbody`}>
{this.getRows(columns, fixed)}