@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.
Files changed (2) hide show
  1. package/es/index.js +5 -1
  2. 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
- export2Excel([extraData, titles].concat(content), exportName2);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-frames/ui",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "keywords": [
5
5
  "ui",
6
6
  "dt-ui"