export-to-exceljs-util 1.0.7 → 1.0.8

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/README.md CHANGED
@@ -65,7 +65,7 @@ const data = [
65
65
  const fileName = "测试数据.xlsx";
66
66
 
67
67
  // 其他信息(可选)
68
- const otherInfo = null;
68
+ const otherInfo = '注释:这里是一些其他信息';
69
69
 
70
70
  // 创建 Excel 导出实例
71
71
  const excelExporter = new ExcelExporter(columns, data, fileName, otherInfo);
package/defaultExport.js CHANGED
@@ -20,7 +20,7 @@ const borderStyle = {
20
20
  right: { style: "thin" },
21
21
  };
22
22
  export default class DefaultExport {
23
- constructor(columns, data, filename = "export.xlsx", describe = []) {
23
+ constructor(columns, data, filename = "export.xlsx", describe='') {
24
24
  this.columns = columns;
25
25
  this.data = data;
26
26
  this.filename = filename;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-to-exceljs-util",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "使用exceljs导出excel文件",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/utils/index.js CHANGED
@@ -157,7 +157,6 @@ function getworkerUrl() {
157
157
 
158
158
  function generateDescribe(worksheet, describe, data) {
159
159
  if (describe) {
160
- console.log('describe',describe);
161
160
  // 定义开始的位置
162
161
  const startCell = data.length + 7;
163
162
  const endCell = startCell + 9;
@@ -168,7 +167,7 @@ function getworkerUrl() {
168
167
  worksheet.mergeCells(mergeStart + ':' + mergeEnd);
169
168
 
170
169
  // 在表格底部加上文字解释
171
- let combinedText = describe.join('\\n');
170
+ let combinedText = describe;
172
171
  const mergedCells = [
173
172
  'A' + startCell,
174
173
  'B' + startCell,