rapid-spreadjs 1.0.149 → 1.0.151
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 +7 -7
- 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 +7 -7
- 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/types/business.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -844,7 +844,7 @@ const BusinessUtils = {
|
|
|
844
844
|
*/
|
|
845
845
|
const setFontSizeFamily = (row, col, isValueCell = false) => {
|
|
846
846
|
const cellObj = sheet.getCell(row, col);
|
|
847
|
-
cellObj.fontFamily('宋体').fontSize('9pt').fontStyle('
|
|
847
|
+
cellObj.fontFamily('宋体').fontSize('9pt').fontStyle('undefined').cellPadding(`0 0 0 ${valuePaddingLeft}`);
|
|
848
848
|
// 值单元格的时候,居左显示
|
|
849
849
|
if (isValueCell) {
|
|
850
850
|
cellObj.hAlign(valueAlign == 'left'
|
|
@@ -882,13 +882,13 @@ const BusinessUtils = {
|
|
|
882
882
|
sheet.addSpan(totalRowCount, contentColStartIndex, 1, titleCellColumnCount, gc.Spread.Sheets.SheetArea.viewport);
|
|
883
883
|
sheet.addSpan(totalRowCount, contentColStartIndex + titleCellColumnCount, 1, rowAttrArr.length > 1 ? titleCellValColumnCount : contentTotalColCount - titleCellColumnCount, gc.Spread.Sheets.SheetArea.viewport);
|
|
884
884
|
sheet.setValue(totalRowCount, contentColStartIndex, rowAttrArr[0].title);
|
|
885
|
-
sheet.setValue(totalRowCount, contentColStartIndex + titleCellColumnCount, rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus ==
|
|
885
|
+
sheet.setValue(totalRowCount, contentColStartIndex + titleCellColumnCount, rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus == true
|
|
886
886
|
? '此处隐藏'
|
|
887
887
|
: rowAttrArr[0].value);
|
|
888
888
|
setFontSizeFamily(totalRowCount, contentColStartIndex);
|
|
889
889
|
setFontSizeFamily(totalRowCount, contentColStartIndex + titleCellColumnCount, true);
|
|
890
890
|
// 设置“此处隐藏”单元格的字体样式
|
|
891
|
-
if (rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus ==
|
|
891
|
+
if (rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus == true) {
|
|
892
892
|
sheet
|
|
893
893
|
.getCell(totalRowCount, contentColStartIndex + titleCellColumnCount)
|
|
894
894
|
.fontFamily('宋体')
|
|
@@ -902,13 +902,13 @@ const BusinessUtils = {
|
|
|
902
902
|
sheet.addSpan(totalRowCount, colIndexTitle, 1, titleCellColumnCount, gc.Spread.Sheets.SheetArea.viewport);
|
|
903
903
|
sheet.addSpan(totalRowCount, colIndexValue, 1, titleCellValColumnCount + 1 + (!isVertical && rowAttrArr.length == 2 ? titleCellColumnCount + titleCellValColumnCount + 1 : 0), gc.Spread.Sheets.SheetArea.viewport);
|
|
904
904
|
sheet.setValue(totalRowCount, colIndexTitle, rowAttrArr[1].title);
|
|
905
|
-
sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus ==
|
|
905
|
+
sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == true
|
|
906
906
|
? '此处隐藏'
|
|
907
907
|
: rowAttrArr[1].value);
|
|
908
908
|
setFontSizeFamily(totalRowCount, colIndexTitle);
|
|
909
909
|
setFontSizeFamily(totalRowCount, colIndexValue, true);
|
|
910
910
|
// 设置“此处隐藏”单元格的字体样式
|
|
911
|
-
if (rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus ==
|
|
911
|
+
if (rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == true) {
|
|
912
912
|
sheet.getCell(totalRowCount, colIndexValue).fontFamily('宋体').fontSize('12px').fontStyle('italic');
|
|
913
913
|
}
|
|
914
914
|
}
|
|
@@ -919,13 +919,13 @@ const BusinessUtils = {
|
|
|
919
919
|
sheet.addSpan(totalRowCount, colIndexTitle, 1, titleCellColumnCount, gc.Spread.Sheets.SheetArea.viewport);
|
|
920
920
|
sheet.addSpan(totalRowCount, colIndexValue, 1, titleCellValColumnCount + 1, gc.Spread.Sheets.SheetArea.viewport);
|
|
921
921
|
sheet.setValue(totalRowCount, colIndexTitle, rowAttrArr[2].title);
|
|
922
|
-
sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus ==
|
|
922
|
+
sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == true
|
|
923
923
|
? '此处隐藏'
|
|
924
924
|
: rowAttrArr[2].value);
|
|
925
925
|
setFontSizeFamily(totalRowCount, colIndexTitle);
|
|
926
926
|
setFontSizeFamily(totalRowCount, colIndexValue, true);
|
|
927
927
|
// 设置“此处隐藏”单元格的字体样式
|
|
928
|
-
if (rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus ==
|
|
928
|
+
if (rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == true) {
|
|
929
929
|
sheet.getCell(totalRowCount, colIndexValue).fontFamily('宋体').fontSize('12px').fontStyle('italic');
|
|
930
930
|
}
|
|
931
931
|
}
|