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 CHANGED
@@ -866,7 +866,7 @@ const BusinessUtils = {
866
866
  */
867
867
  const setFontSizeFamily = (row, col, isValueCell = false) => {
868
868
  const cellObj = sheet.getCell(row, col);
869
- cellObj.fontFamily('宋体').fontSize('9pt').fontStyle('normail').cellPadding(`0 0 0 ${valuePaddingLeft}`);
869
+ cellObj.fontFamily('宋体').fontSize('9pt').fontStyle('undefined').cellPadding(`0 0 0 ${valuePaddingLeft}`);
870
870
  // 值单元格的时候,居左显示
871
871
  if (isValueCell) {
872
872
  cellObj.hAlign(valueAlign == 'left'
@@ -904,13 +904,13 @@ const BusinessUtils = {
904
904
  sheet.addSpan(totalRowCount, contentColStartIndex, 1, titleCellColumnCount, gc.Spread.Sheets.SheetArea.viewport);
905
905
  sheet.addSpan(totalRowCount, contentColStartIndex + titleCellColumnCount, 1, rowAttrArr.length > 1 ? titleCellValColumnCount : contentTotalColCount - titleCellColumnCount, gc.Spread.Sheets.SheetArea.viewport);
906
906
  sheet.setValue(totalRowCount, contentColStartIndex, rowAttrArr[0].title);
907
- sheet.setValue(totalRowCount, contentColStartIndex + titleCellColumnCount, rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus == false
907
+ sheet.setValue(totalRowCount, contentColStartIndex + titleCellColumnCount, rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus == true
908
908
  ? '此处隐藏'
909
909
  : rowAttrArr[0].value);
910
910
  setFontSizeFamily(totalRowCount, contentColStartIndex);
911
911
  setFontSizeFamily(totalRowCount, contentColStartIndex + titleCellColumnCount, true);
912
912
  // 设置“此处隐藏”单元格的字体样式
913
- if (rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus == false) {
913
+ if (rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus == true) {
914
914
  sheet
915
915
  .getCell(totalRowCount, contentColStartIndex + titleCellColumnCount)
916
916
  .fontFamily('宋体')
@@ -924,13 +924,13 @@ const BusinessUtils = {
924
924
  sheet.addSpan(totalRowCount, colIndexTitle, 1, titleCellColumnCount, gc.Spread.Sheets.SheetArea.viewport);
925
925
  sheet.addSpan(totalRowCount, colIndexValue, 1, titleCellValColumnCount + 1 + (!isVertical && rowAttrArr.length == 2 ? titleCellColumnCount + titleCellValColumnCount + 1 : 0), gc.Spread.Sheets.SheetArea.viewport);
926
926
  sheet.setValue(totalRowCount, colIndexTitle, rowAttrArr[1].title);
927
- sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == false
927
+ sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == true
928
928
  ? '此处隐藏'
929
929
  : rowAttrArr[1].value);
930
930
  setFontSizeFamily(totalRowCount, colIndexTitle);
931
931
  setFontSizeFamily(totalRowCount, colIndexValue, true);
932
932
  // 设置“此处隐藏”单元格的字体样式
933
- if (rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == false) {
933
+ if (rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == true) {
934
934
  sheet.getCell(totalRowCount, colIndexValue).fontFamily('宋体').fontSize('12px').fontStyle('italic');
935
935
  }
936
936
  }
@@ -941,13 +941,13 @@ const BusinessUtils = {
941
941
  sheet.addSpan(totalRowCount, colIndexTitle, 1, titleCellColumnCount, gc.Spread.Sheets.SheetArea.viewport);
942
942
  sheet.addSpan(totalRowCount, colIndexValue, 1, titleCellValColumnCount + 1, gc.Spread.Sheets.SheetArea.viewport);
943
943
  sheet.setValue(totalRowCount, colIndexTitle, rowAttrArr[2].title);
944
- sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == false
944
+ sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == true
945
945
  ? '此处隐藏'
946
946
  : rowAttrArr[2].value);
947
947
  setFontSizeFamily(totalRowCount, colIndexTitle);
948
948
  setFontSizeFamily(totalRowCount, colIndexValue, true);
949
949
  // 设置“此处隐藏”单元格的字体样式
950
- if (rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == false) {
950
+ if (rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == true) {
951
951
  sheet.getCell(totalRowCount, colIndexValue).fontFamily('宋体').fontSize('12px').fontStyle('italic');
952
952
  }
953
953
  }