瀏覽代碼

导入0值 bug

yuliang 3 年之前
父節點
當前提交
de55bc793c
共有 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)
                                     nv = column.importFormatter(vdata)
                                 }
                                 }
 
 
-                                if (!nv) {
+                                if (!nv && nv != 0) {
                                     hasError = true;
                                     hasError = true;
                                 } else {
                                 } else {
                                     row[column.dataIndex] = nv;
                                     row[column.dataIndex] = nv;