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.cjs.js +4 -2
- 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 +4 -2
- 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,7 +636,7 @@ 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
641
|
addRowRange.setBorder(new gc.Spread.Sheets.LineBorder('#000', gc.Spread.Sheets.LineStyle.medium), {
|
|
642
642
|
left: true,
|
|
@@ -18748,12 +18748,13 @@ const WorkbookUtils = {
|
|
|
18748
18748
|
* @param isExcel 是否导出为Excel文件,默认为true(如果为false,则导出为PDF)
|
|
18749
18749
|
* @param exportName 导出的文件名称,不传则为第一个Sheet的名称
|
|
18750
18750
|
* @param regFonts 注册的字体集合,默认注册宋体和Arial字体
|
|
18751
|
+
* @param contentColEndIndex 内容列结束的索引,默认为:77(用于导出PDF文件的时候,只导出内容列到索引contentColEndIndex的位置,超过contentColEndIndex索引列后续的内容其实不需要导出)
|
|
18751
18752
|
* @returns 合并后的工作簿实例
|
|
18752
18753
|
*/
|
|
18753
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 = [
|
|
18754
18755
|
{ name: '宋体', type: 'normal', url: '/spreadJsFonts/simsun.ttf' },
|
|
18755
18756
|
{ name: 'Arial', type: 'normal', url: '/spreadJsFonts/arial.ttf' },
|
|
18756
|
-
]) {
|
|
18757
|
+
], contentColEndIndex = 77) {
|
|
18757
18758
|
if (!spreads || spreads.length == 0) {
|
|
18758
18759
|
return;
|
|
18759
18760
|
}
|
|
@@ -18836,6 +18837,7 @@ const WorkbookUtils = {
|
|
|
18836
18837
|
const pdfSheet = mainWorkbook.getSheet(mainWorkbook.getSheetCount() - 1);
|
|
18837
18838
|
let printInfo = pdfSheet.printInfo();
|
|
18838
18839
|
printInfo.margin({ top: 0, bottom: 0, left: 0, right: 0, header: 0, footer: 0 });
|
|
18840
|
+
printInfo.columnEnd(contentColEndIndex);
|
|
18839
18841
|
printInfo.showBorder(false);
|
|
18840
18842
|
printInfo.showGridLine(false);
|
|
18841
18843
|
printInfo.blackAndWhite(false);
|