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.esm.js CHANGED
@@ -891,6 +891,9 @@ const BusinessUtils = {
891
891
  sheet.setValue(totalRowCount, contentColStartIndex + titleCellColumnCount, rowAttrArr[0].blindDisplayStatus != null && rowAttrArr[0].blindDisplayStatus != undefined && rowAttrArr[0].blindDisplayStatus == true
892
892
  ? '此处隐藏'
893
893
  : rowAttrArr[0].value);
894
+ // 启用单元格自动换行 和 自适应行高
895
+ sheet.getCell(totalRowCount, contentColStartIndex).wordWrap(true);
896
+ sheet.autoFitRow(totalRowCount);
894
897
  curRowCells.push({ row: totalRowCount, col: contentColStartIndex });
895
898
  curRowCells.push({ row: totalRowCount, col: contentColStartIndex + titleCellColumnCount });
896
899
  setFontSizeFamily(totalRowCount, contentColStartIndex);
@@ -917,6 +920,9 @@ const BusinessUtils = {
917
920
  sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == true
918
921
  ? '此处隐藏'
919
922
  : rowAttrArr[1].value);
923
+ // 启用单元格自动换行 和 自适应行高
924
+ sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
925
+ sheet.autoFitRow(totalRowCount);
920
926
  curRowCells.push({ row: totalRowCount, col: colIndexTitle });
921
927
  curRowCells.push({ row: totalRowCount, col: colIndexValue });
922
928
  setFontSizeFamily(totalRowCount, colIndexTitle);
@@ -936,6 +942,9 @@ const BusinessUtils = {
936
942
  sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == true
937
943
  ? '此处隐藏'
938
944
  : rowAttrArr[2].value);
945
+ // 启用单元格自动换行 和 自适应行高
946
+ sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
947
+ sheet.autoFitRow(totalRowCount);
939
948
  curRowCells.push({ row: totalRowCount, col: colIndexTitle });
940
949
  curRowCells.push({ row: totalRowCount, col: colIndexValue });
941
950
  setFontSizeFamily(totalRowCount, colIndexTitle);