@dt-frames/ui 1.0.46 → 1.0.47
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/es/index.js +5 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -6910,7 +6910,11 @@ function useDownload(exportUrl, exportName) {
|
|
|
6910
6910
|
total.push(rowData);
|
|
6911
6911
|
return total;
|
|
6912
6912
|
}, []);
|
|
6913
|
-
|
|
6913
|
+
let excelHeader = [titles];
|
|
6914
|
+
if (extraData && extraData.length > 0) {
|
|
6915
|
+
excelHeader = [...extraData, titles];
|
|
6916
|
+
}
|
|
6917
|
+
export2Excel(excelHeader.concat(content), exportName2);
|
|
6914
6918
|
}
|
|
6915
6919
|
function export2Excel(data = [], exportName2 = "") {
|
|
6916
6920
|
const worksheet = xlsx.utils.aoa_to_sheet(data);
|