inviton-powerduck 0.0.150 → 0.0.151
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.
|
@@ -89,10 +89,9 @@ export class ExcelJsProvider {
|
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
const mySelf = this;
|
|
93
92
|
workbook.xlsx
|
|
94
93
|
.writeBuffer()
|
|
95
|
-
.then((data:
|
|
94
|
+
.then((data: any) => {
|
|
96
95
|
const blob = new Blob([data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
|
|
97
96
|
PortalUtils.downloadBlob(
|
|
98
97
|
blob,
|
|
@@ -182,23 +182,19 @@ class TableExportModalComponent extends TsxComponent<TableExportModalBindingArgs
|
|
|
182
182
|
worksheet.addRow(rowExportData);
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
-
|
|
186
|
-
workbook.xlsx.writeBuffer().then((data: Uint8Array) => {
|
|
185
|
+
workbook.xlsx.writeBuffer().then((data: any) => {
|
|
187
186
|
const blob = new Blob([data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
|
|
188
187
|
PortalUtils.downloadBlob(
|
|
189
188
|
blob,
|
|
190
189
|
'export.xlsx',
|
|
191
190
|
() => {
|
|
192
191
|
setTimeout(() => {
|
|
193
|
-
|
|
192
|
+
this.hideExportModal();
|
|
194
193
|
}, 300);
|
|
195
194
|
},
|
|
196
195
|
);
|
|
197
196
|
}).catch((err) => {
|
|
198
197
|
const omg = err;
|
|
199
|
-
if (omg == 'wtf') {
|
|
200
|
-
alert('wtf..');
|
|
201
|
-
}
|
|
202
198
|
});
|
|
203
199
|
}
|
|
204
200
|
}
|