表格width NaN Warning处理

This commit is contained in:
wanghaoo 2018-11-20 11:40:01 +08:00
parent a62de8e130
commit 969b831528
3 changed files with 3 additions and 3 deletions

2
dist/demo.js vendored
View File

@ -11251,7 +11251,7 @@
} else if (width) {
width = parseInt(width);
}
if (lastShowIndex == i) {
if (lastShowIndex == i && width) {
width = width + contentWidthDiff;
}

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -589,7 +589,7 @@ class Table extends Component {
} else if (width) {
width = parseInt(width);
}
if (lastShowIndex == i) {
if (lastShowIndex == i && width) {
width = width + contentWidthDiff;
}