rapid-spreadjs 1.0.29 → 1.0.31

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.
@@ -41,13 +41,15 @@ export declare const WorkbookUtils: {
41
41
  */
42
42
  exportToExcel: (GC: any, spread: any, fileName?: string) => void;
43
43
  /**
44
- * 合并多个工作簿并导出Excel(同时返回合并后的工作簿实例)
44
+ * 合并多个工作簿并导出Excel或PDF(同时返回合并后的工作簿实例)
45
45
  * @param GC Spread的GC对象
46
46
  * @param spreads 工作簿实例集合
47
+ * @param isExcel 是否导出为Excel文件,默认为true(如果为false,则导出为PDF)
47
48
  * @param exportName 导出的文件名称,不传则为第一个Sheet的名称
49
+ * @param regFonts 注册的字体集合,默认注册宋体和Arial字体
48
50
  * @returns 合并后的工作簿实例
49
51
  */
50
- mergeWorkbooksToExcel: (GC: any, spreads: any[], exportName?: string) => Promise<any>;
52
+ mergeWorkbooksToExcelOrPdf: (GC: any, spreads: any[], isExcel?: boolean, exportName?: string, regFonts?: RegisterFontModel[]) => Promise<any>;
51
53
  /**
52
54
  * 注册字体(主要为导出PDF使用)
53
55
  * @param GC Spread的GC对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapid-spreadjs",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "SpreadJS常用公用处理函数,包括设计器、工作簿和工作表的相关处理函数。",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",