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.esm.js
CHANGED
|
@@ -614,10 +614,14 @@ 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
|
-
addRowRange.setBorder(new gc.Spread.Sheets.LineBorder('#000', gc.Spread.Sheets.LineStyle.medium), {
|
|
620
|
-
|
|
619
|
+
addRowRange.setBorder(new gc.Spread.Sheets.LineBorder('#000', gc.Spread.Sheets.LineStyle.medium), {
|
|
620
|
+
left: true,
|
|
621
|
+
right: true,
|
|
622
|
+
top: i == 0,
|
|
623
|
+
bottom: i == testObjectAttrsChunk.length - 1,
|
|
624
|
+
});
|
|
621
625
|
// 设置单元格水平和垂直居中
|
|
622
626
|
addRowRange.hAlign(gc.Spread.Sheets.HorizontalAlign.center);
|
|
623
627
|
addRowRange.vAlign(gc.Spread.Sheets.HorizontalAlign.center);
|
|
@@ -18722,12 +18726,13 @@ const WorkbookUtils = {
|
|
|
18722
18726
|
* @param isExcel 是否导出为Excel文件,默认为true(如果为false,则导出为PDF)
|
|
18723
18727
|
* @param exportName 导出的文件名称,不传则为第一个Sheet的名称
|
|
18724
18728
|
* @param regFonts 注册的字体集合,默认注册宋体和Arial字体
|
|
18729
|
+
* @param contentColEndIndex 内容列结束的索引,默认为:77(用于导出PDF文件的时候,只导出内容列到索引contentColEndIndex的位置,超过contentColEndIndex索引列后续的内容其实不需要导出)
|
|
18725
18730
|
* @returns 合并后的工作簿实例
|
|
18726
18731
|
*/
|
|
18727
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 = [
|
|
18728
18733
|
{ name: '宋体', type: 'normal', url: '/spreadJsFonts/simsun.ttf' },
|
|
18729
18734
|
{ name: 'Arial', type: 'normal', url: '/spreadJsFonts/arial.ttf' },
|
|
18730
|
-
]) {
|
|
18735
|
+
], contentColEndIndex = 77) {
|
|
18731
18736
|
if (!spreads || spreads.length == 0) {
|
|
18732
18737
|
return;
|
|
18733
18738
|
}
|
|
@@ -18810,6 +18815,7 @@ const WorkbookUtils = {
|
|
|
18810
18815
|
const pdfSheet = mainWorkbook.getSheet(mainWorkbook.getSheetCount() - 1);
|
|
18811
18816
|
let printInfo = pdfSheet.printInfo();
|
|
18812
18817
|
printInfo.margin({ top: 0, bottom: 0, left: 0, right: 0, header: 0, footer: 0 });
|
|
18818
|
+
printInfo.columnEnd(contentColEndIndex);
|
|
18813
18819
|
printInfo.showBorder(false);
|
|
18814
18820
|
printInfo.showGridLine(false);
|
|
18815
18821
|
printInfo.blackAndWhite(false);
|