rapid-spreadjs 1.0.32 → 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.cjs.js +10 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +10 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/utils/wookbook.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -636,10 +636,14 @@ const BusinessUtils = {
|
|
|
636
636
|
sheet.setRowHeight(totalRowCount, addRowHeight, gc.Spread.Sheets.SheetArea.viewport);
|
|
637
637
|
// 获取添加这一行的区域范围
|
|
638
638
|
const addRowRange = sheet.getRange(totalRowCount, 1, contentColStartIndex, contentTotalColCount, gc.Spread.Sheets.SheetArea.viewport);
|
|
639
|
-
//
|
|
639
|
+
// 设置添加这一行区域中的边框样式(上下左右边框样式为粗线、中间的为细边框样式)
|
|
640
640
|
addRowRange.setBorder(new gc.Spread.Sheets.LineBorder('#000', gc.Spread.Sheets.LineStyle.thin), { all: true });
|
|
641
|
-
addRowRange.setBorder(new gc.Spread.Sheets.LineBorder('#000', gc.Spread.Sheets.LineStyle.medium), {
|
|
642
|
-
|
|
641
|
+
addRowRange.setBorder(new gc.Spread.Sheets.LineBorder('#000', gc.Spread.Sheets.LineStyle.medium), {
|
|
642
|
+
left: true,
|
|
643
|
+
right: true,
|
|
644
|
+
top: i == 0,
|
|
645
|
+
bottom: i == testObjectAttrsChunk.length - 1,
|
|
646
|
+
});
|
|
643
647
|
// 设置单元格水平和垂直居中
|
|
644
648
|
addRowRange.hAlign(gc.Spread.Sheets.HorizontalAlign.center);
|
|
645
649
|
addRowRange.vAlign(gc.Spread.Sheets.HorizontalAlign.center);
|
|
@@ -18744,12 +18748,13 @@ const WorkbookUtils = {
|
|
|
18744
18748
|
* @param isExcel 是否导出为Excel文件,默认为true(如果为false,则导出为PDF)
|
|
18745
18749
|
* @param exportName 导出的文件名称,不传则为第一个Sheet的名称
|
|
18746
18750
|
* @param regFonts 注册的字体集合,默认注册宋体和Arial字体
|
|
18751
|
+
* @param contentColEndIndex 内容列结束的索引,默认为:77(用于导出PDF文件的时候,只导出内容列到索引contentColEndIndex的位置,超过contentColEndIndex索引列后续的内容其实不需要导出)
|
|
18747
18752
|
* @returns 合并后的工作簿实例
|
|
18748
18753
|
*/
|
|
18749
18754
|
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 = [
|
|
18750
18755
|
{ name: '宋体', type: 'normal', url: '/spreadJsFonts/simsun.ttf' },
|
|
18751
18756
|
{ name: 'Arial', type: 'normal', url: '/spreadJsFonts/arial.ttf' },
|
|
18752
|
-
]) {
|
|
18757
|
+
], contentColEndIndex = 77) {
|
|
18753
18758
|
if (!spreads || spreads.length == 0) {
|
|
18754
18759
|
return;
|
|
18755
18760
|
}
|
|
@@ -18832,6 +18837,7 @@ const WorkbookUtils = {
|
|
|
18832
18837
|
const pdfSheet = mainWorkbook.getSheet(mainWorkbook.getSheetCount() - 1);
|
|
18833
18838
|
let printInfo = pdfSheet.printInfo();
|
|
18834
18839
|
printInfo.margin({ top: 0, bottom: 0, left: 0, right: 0, header: 0, footer: 0 });
|
|
18840
|
+
printInfo.columnEnd(contentColEndIndex);
|
|
18835
18841
|
printInfo.showBorder(false);
|
|
18836
18842
|
printInfo.showGridLine(false);
|
|
18837
18843
|
printInfo.blackAndWhite(false);
|