js-downloadexcel
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -25,3 +25,7 @@ import XLSX from 'xlsx' | ||
exports.download = (data, downloadFileName) => { | ||
exports.download = ({ data, rowColConfig, colWidth, downloadFileName }) => { | ||
let temp = XLSX.utils.json_to_sheet(data) | ||
if (rowColConfig) { temp["!merges"] = rowColConfig } | ||
if (colWidth) { temp['!cols'] = colWidth } | ||
saveAsXlsx( | ||
@@ -28,0 +32,0 @@ new Blob([s2SStream(XLSX.write( |
{ | ||
"name": "js-downloadexcel", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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
4711
35