rapid-spreadjs 1.0.176 → 1.0.177

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
@@ -913,6 +913,9 @@ const BusinessUtils = {
913
913
  sheet.setValue(totalRowCount, contentColStartIndex + titleCellColumnCount, rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus == true
914
914
  ? '此处隐藏'
915
915
  : rowAttrArr[0].value);
916
+ // 启用单元格自动换行 和 自适应行高
917
+ sheet.getCell(totalRowCount, contentColStartIndex).wordWrap(true);
918
+ sheet.autoFitRow(totalRowCount);
916
919
  curRowCells.push({ row: totalRowCount, col: contentColStartIndex });
917
920
  curRowCells.push({ row: totalRowCount, col: contentColStartIndex + titleCellColumnCount });
918
921
  setFontSizeFamily(totalRowCount, contentColStartIndex);
@@ -939,6 +942,9 @@ const BusinessUtils = {
939
942
  sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == true
940
943
  ? '此处隐藏'
941
944
  : rowAttrArr[1].value);
945
+ // 启用单元格自动换行 和 自适应行高
946
+ sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
947
+ sheet.autoFitRow(totalRowCount);
942
948
  curRowCells.push({ row: totalRowCount, col: colIndexTitle });
943
949
  curRowCells.push({ row: totalRowCount, col: colIndexValue });
944
950
  setFontSizeFamily(totalRowCount, colIndexTitle);
@@ -958,6 +964,9 @@ const BusinessUtils = {
958
964
  sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == true
959
965
  ? '此处隐藏'
960
966
  : rowAttrArr[2].value);
967
+ // 启用单元格自动换行 和 自适应行高
968
+ sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
969
+ sheet.autoFitRow(totalRowCount);
961
970
  curRowCells.push({ row: totalRowCount, col: colIndexTitle });
962
971
  curRowCells.push({ row: totalRowCount, col: colIndexValue });
963
972
  setFontSizeFamily(totalRowCount, colIndexTitle);