js-downloadexcel
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -25,6 +25,9 @@ let XLSX = _interopRequireWildcard(require('js-xlsxstyle')) | ||
} else if (window.navigator.userAgent.includes("Firefox")) { | ||
var a = document.createElement("a"); | ||
var a = document.createElement("a") | ||
a.style = 'visibility:hidden'; | ||
a.href = URL.createObjectURL(obj); | ||
a.download = fileName; | ||
document.body.append(a) | ||
a.click(); | ||
document.body.removeChild(a); | ||
} else { | ||
@@ -98,3 +101,3 @@ tmpa.href = URL.createObjectURL(obj); | ||
tmpdata, //内容 | ||
{ "!ref": outputPos[0] + ":" + outputPos[outputPos.length - 1] }//设置填充区域 | ||
outputPos.length > 0 ? { "!ref": outputPos[0] + ":" + outputPos[outputPos.length - 1] }: {}//设置填充区域 | ||
) | ||
@@ -101,0 +104,0 @@ } |
{ | ||
"name": "js-downloadexcel", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"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
144
5926