js-downloadexcel
Advanced tools
Comparing version 0.0.7 to 0.0.8
11
index.js
@@ -155,7 +155,8 @@ // import XLSX from "js-xlsxstyle" | ||
newArr = newArr.concat(json) | ||
let arr = newArr.map((v, i) => keyMap.map((k, j) => Object.assign({}, { | ||
v: v[k], bold: isBold, color, backgroundColor, fontSize, borderColor, | ||
position: regEx.test(v[k]) ? (j > 25 ? getCharCol(j) : String.fromCharCode(65 + j)) + (i + 1) : '', | ||
}))).reduce((prev, next) => prev.concat(next)) | ||
return arr | ||
if (newArr.length > 0) { | ||
return newArr.map((v, i) => keyMap.map((k, j) => Object.assign({}, { | ||
v: v[k], bold: isBold, color, backgroundColor, fontSize, borderColor, | ||
position: regEx.test(v[k]) ? (j > 25 ? getCharCol(j) : String.fromCharCode(65 + j)) + (i + 1) : '', | ||
}))).reduce((prev, next) => prev.concat(next)) | ||
} else { return [] } | ||
} |
{ | ||
"name": "js-downloadexcel", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "下载excel", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6114
153