fix download name
This commit is contained in:
parent
b0e80b8a49
commit
f2249478ed
@ -1183,7 +1183,10 @@ const _sfc_main = defineComponent({
|
|||||||
<table syle="table-layout: fixed;word-wrap: break-word; word-break: break-all;">${tableStr}</table>
|
<table syle="table-layout: fixed;word-wrap: break-word; word-break: break-all;">${tableStr}</table>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
window.location.href = uri + base64(exportTemplate);
|
let a = document.createElement("a");
|
||||||
|
a.href = uri + base64(exportTemplate);
|
||||||
|
a.download = "\u4E0B\u8F7D\u6587\u4EF6.xls";
|
||||||
|
a.click();
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
function base64(s2) {
|
function base64(s2) {
|
||||||
|
@ -19607,7 +19607,10 @@ const _sfc_main$D = defineComponent({
|
|||||||
<table syle="table-layout: fixed;word-wrap: break-word; word-break: break-all;">${tableStr}</table>
|
<table syle="table-layout: fixed;word-wrap: break-word; word-break: break-all;">${tableStr}</table>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
window.location.href = uri + base64(exportTemplate);
|
let a = document.createElement("a");
|
||||||
|
a.href = uri + base64(exportTemplate);
|
||||||
|
a.download = "\u4E0B\u8F7D\u6587\u4EF6.xls";
|
||||||
|
a.click();
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
function base64(s2) {
|
function base64(s2) {
|
||||||
|
@ -421,7 +421,11 @@ const exportData = () => {
|
|||||||
<table syle="table-layout: fixed;word-wrap: break-word; word-break: break-all;">${tableStr}</table>
|
<table syle="table-layout: fixed;word-wrap: break-word; word-break: break-all;">${tableStr}</table>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
window.location.href = uri + base64(exportTemplate);
|
let a = document.createElement("a")
|
||||||
|
a.href = uri + base64(exportTemplate);
|
||||||
|
a.download="下载文件.xls";
|
||||||
|
a.click();
|
||||||
|
// window.location.href =
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
178
umd/index.js
178
umd/index.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user