This commit is contained in:
Theluyuan 2023-11-03 15:32:09 +08:00
parent a4291f1361
commit d858824376
4 changed files with 17 additions and 17 deletions

View File

@ -1210,7 +1210,7 @@ const _sfc_main = defineComponent({
if (tableColumn.valueType == "str") {
info[name] = item[name];
} else {
info[name] = isNaN(Number(item[name])) ? item[name] : Number(item[name]);
info[name] = isNaN(Number(item[name])) || !item[name] && item[name] !== 0 ? item[name] : Number(item[name]);
}
}
});

View File

@ -40037,7 +40037,7 @@ const _sfc_main$D = defineComponent({
if (tableColumn.valueType == "str") {
info[name] = item[name];
} else {
info[name] = isNaN(Number(item[name])) ? item[name] : Number(item[name]);
info[name] = isNaN(Number(item[name])) || !item[name] && item[name] !== 0 ? item[name] : Number(item[name]);
}
}
});

View File

@ -456,7 +456,7 @@ const exportData = () => {
if(tableColumn.valueType == "str"){
info[name] = item[name]
}else{
info[name] = isNaN(Number(item[name])) ? item[name] : Number(item[name])
info[name] = isNaN(Number(item[name])) || (!item[name] && item[name] !== 0) ? item[name] : Number(item[name])
}
}

File diff suppressed because one or more lines are too long