浏览代码

Merge remote-tracking branch 'origin/master'

lizw 3 年之前
父节点
当前提交
164b4e34dd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/xlsx.ts

+ 1 - 1
src/xlsx.ts

@@ -288,7 +288,7 @@ export function readExcelWithColumnsSet(topScope: Scope,
                                     nv = column.importFormatter(vdata)
                                 }
 
-                                if (!nv) {
+                                if (!nv && nv != 0) {
                                     hasError = true;
                                 } else {
                                     row[column.dataIndex] = nv;