rapid-spreadjs 1.0.176 → 1.0.178

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,13 @@ 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.getCell(totalRowCount, contentColStartIndex + titleCellColumnCount).wordWrap(true);
919
+ sheet.autoFitRow(totalRowCount);
920
+ if (sheet.getRowHeight(totalRowCount) < 31) {
921
+ sheet.setRowHeight(totalRowCount, 31);
922
+ }
916
923
  curRowCells.push({ row: totalRowCount, col: contentColStartIndex });
917
924
  curRowCells.push({ row: totalRowCount, col: contentColStartIndex + titleCellColumnCount });
918
925
  setFontSizeFamily(totalRowCount, contentColStartIndex);
@@ -939,6 +946,13 @@ const BusinessUtils = {
939
946
  sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == true
940
947
  ? '此处隐藏'
941
948
  : rowAttrArr[1].value);
949
+ // 启用单元格自动换行 和 自适应行高
950
+ sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
951
+ sheet.getCell(totalRowCount, colIndexValue).wordWrap(true);
952
+ sheet.autoFitRow(totalRowCount);
953
+ if (sheet.getRowHeight(totalRowCount) < 31) {
954
+ sheet.setRowHeight(totalRowCount, 31);
955
+ }
942
956
  curRowCells.push({ row: totalRowCount, col: colIndexTitle });
943
957
  curRowCells.push({ row: totalRowCount, col: colIndexValue });
944
958
  setFontSizeFamily(totalRowCount, colIndexTitle);
@@ -958,6 +972,13 @@ const BusinessUtils = {
958
972
  sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == true
959
973
  ? '此处隐藏'
960
974
  : rowAttrArr[2].value);
975
+ // 启用单元格自动换行 和 自适应行高
976
+ sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
977
+ sheet.getCell(totalRowCount, colIndexValue).wordWrap(true);
978
+ sheet.autoFitRow(totalRowCount);
979
+ if (sheet.getRowHeight(totalRowCount) < 31) {
980
+ sheet.setRowHeight(totalRowCount, 31);
981
+ }
961
982
  curRowCells.push({ row: totalRowCount, col: colIndexTitle });
962
983
  curRowCells.push({ row: totalRowCount, col: colIndexValue });
963
984
  setFontSizeFamily(totalRowCount, colIndexTitle);