rapid-spreadjs 1.0.33 → 1.0.34

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/dist/index.esm.js CHANGED
@@ -614,7 +614,7 @@ const BusinessUtils = {
614
614
  sheet.setRowHeight(totalRowCount, addRowHeight, gc.Spread.Sheets.SheetArea.viewport);
615
615
  // 获取添加这一行的区域范围
616
616
  const addRowRange = sheet.getRange(totalRowCount, 1, contentColStartIndex, contentTotalColCount, gc.Spread.Sheets.SheetArea.viewport);
617
- // 设置添加这一行区域中的边框样式(最左边和最后边边框样式为粗线、中间的为细边框样式)
617
+ // 设置添加这一行区域中的边框样式(上下左右边框样式为粗线、中间的为细边框样式)
618
618
  addRowRange.setBorder(new gc.Spread.Sheets.LineBorder('#000', gc.Spread.Sheets.LineStyle.thin), { all: true });
619
619
  addRowRange.setBorder(new gc.Spread.Sheets.LineBorder('#000', gc.Spread.Sheets.LineStyle.medium), {
620
620
  left: true,
@@ -18726,12 +18726,13 @@ const WorkbookUtils = {
18726
18726
  * @param isExcel 是否导出为Excel文件,默认为true(如果为false,则导出为PDF)
18727
18727
  * @param exportName 导出的文件名称,不传则为第一个Sheet的名称
18728
18728
  * @param regFonts 注册的字体集合,默认注册宋体和Arial字体
18729
+ * @param contentColEndIndex 内容列结束的索引,默认为:77(用于导出PDF文件的时候,只导出内容列到索引contentColEndIndex的位置,超过contentColEndIndex索引列后续的内容其实不需要导出)
18729
18730
  * @returns 合并后的工作簿实例
18730
18731
  */
18731
18732
  mergeWorkbooksToExcelOrPdf: (GC_1, spreads_1, ...args_1) => __awaiter(void 0, [GC_1, spreads_1, ...args_1], void 0, function* (GC, spreads, isExcel = true, exportName, regFonts = [
18732
18733
  { name: '宋体', type: 'normal', url: '/spreadJsFonts/simsun.ttf' },
18733
18734
  { name: 'Arial', type: 'normal', url: '/spreadJsFonts/arial.ttf' },
18734
- ]) {
18735
+ ], contentColEndIndex = 77) {
18735
18736
  if (!spreads || spreads.length == 0) {
18736
18737
  return;
18737
18738
  }
@@ -18814,6 +18815,7 @@ const WorkbookUtils = {
18814
18815
  const pdfSheet = mainWorkbook.getSheet(mainWorkbook.getSheetCount() - 1);
18815
18816
  let printInfo = pdfSheet.printInfo();
18816
18817
  printInfo.margin({ top: 0, bottom: 0, left: 0, right: 0, header: 0, footer: 0 });
18818
+ printInfo.columnEnd(contentColEndIndex);
18817
18819
  printInfo.showBorder(false);
18818
18820
  printInfo.showGridLine(false);
18819
18821
  printInfo.blackAndWhite(false);