Permalink
Browse files

fix: 修复inter和float的数值为0时就设置为空字符串的bug

  • Loading branch information...
HuYuee committed Jul 10, 2017
1 parent 3913106 commit d66e10ebd4e95c4e179f8d0899bb885aa867865a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/js/gridCompRenderType.js
@@ -132,7 +132,7 @@ const renderTypeByColumn = function(gridCompColumn, i, begin, length, isFixedCol
span.title = v;
} else if (dataType == 'Int') {
v = parseInt(v);
if (v) {
if (!isNaN(v)) {
span.innerHTML = v;
span.title = v;
} else {
@@ -148,7 +148,7 @@ const renderTypeByColumn = function(gridCompColumn, i, begin, length, isFixedCol
} else {
v = parseFloat(v);
}
if (v) {
if (!isNaN(v)) {
span.innerHTML = v;
span.title = v;
} else {

0 comments on commit d66e10e

Please sign in to comment.