Skip to content

Commit

Permalink
fix: getSimpleData如果为undefined按原值返回
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyk committed Dec 6, 2016
1 parent 2654da4 commit c7b3135
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/dataTable/row-getSimpleData.js
Expand Up @@ -32,6 +32,8 @@ const _getSimpleData = function(rowObj, data){
_data[key] = rowObj.formatValueFun(obj,rowObj.parent.dateNoConvert); _data[key] = rowObj.formatValueFun(obj,rowObj.parent.dateNoConvert);


} }
}else if(!data[key].value){
_data[key] = data[key].value;
} }
else{ else{
_data[key] = _getSimpleData(rowObj, data[key]) _data[key] = _getSimpleData(rowObj, data[key])
Expand Down

0 comments on commit c7b3135

Please sign in to comment.