el-plus-crud 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/dist/el-plus-crud.mjs +804 -802
- package/lib/components/el-plus-table/components/header.vue +6 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
|
@@ -159,7 +159,12 @@ async function handelDownload({ callBack }: IBtnBack) {
|
|
|
159
159
|
}, 1000)
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
xhr.onerror = function () {
|
|
162
|
+
xhr.onerror = function (e: any) {
|
|
163
|
+
// 如果错误,则尝试直接打开链接
|
|
164
|
+
const aLink = document.createElement('a')
|
|
165
|
+
aLink.href = url
|
|
166
|
+
aLink.download = (props.toolbar?.export?.name || new Date().getTime()) + (props.toolbar?.export?.suffix || '.xlsx')
|
|
167
|
+
aLink.click()
|
|
163
168
|
setTimeout(() => {
|
|
164
169
|
callBack && callBack()
|
|
165
170
|
}, 1000)
|
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "el-plus-crud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.86",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "el-plus-crud",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.86",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@element-plus/icons-vue": "^2.1.0",
|