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 +21 -0
- 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 +21 -0
- 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/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -891,6 +891,13 @@ 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.getCell(totalRowCount, contentColStartIndex + titleCellColumnCount).wordWrap(true);
|
|
897
|
+
sheet.autoFitRow(totalRowCount);
|
|
898
|
+
if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
899
|
+
sheet.setRowHeight(totalRowCount, 31);
|
|
900
|
+
}
|
|
894
901
|
curRowCells.push({ row: totalRowCount, col: contentColStartIndex });
|
|
895
902
|
curRowCells.push({ row: totalRowCount, col: contentColStartIndex + titleCellColumnCount });
|
|
896
903
|
setFontSizeFamily(totalRowCount, contentColStartIndex);
|
|
@@ -917,6 +924,13 @@ const BusinessUtils = {
|
|
|
917
924
|
sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[1].blindDisplayStatus != null && rowAttrArr[1].blindDisplayStatus != undefined && rowAttrArr[1].blindDisplayStatus == true
|
|
918
925
|
? '此处隐藏'
|
|
919
926
|
: rowAttrArr[1].value);
|
|
927
|
+
// 启用单元格自动换行 和 自适应行高
|
|
928
|
+
sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
|
|
929
|
+
sheet.getCell(totalRowCount, colIndexValue).wordWrap(true);
|
|
930
|
+
sheet.autoFitRow(totalRowCount);
|
|
931
|
+
if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
932
|
+
sheet.setRowHeight(totalRowCount, 31);
|
|
933
|
+
}
|
|
920
934
|
curRowCells.push({ row: totalRowCount, col: colIndexTitle });
|
|
921
935
|
curRowCells.push({ row: totalRowCount, col: colIndexValue });
|
|
922
936
|
setFontSizeFamily(totalRowCount, colIndexTitle);
|
|
@@ -936,6 +950,13 @@ const BusinessUtils = {
|
|
|
936
950
|
sheet.setValue(totalRowCount, colIndexValue, rowAttrArr[2].blindDisplayStatus != null && rowAttrArr[2].blindDisplayStatus != undefined && rowAttrArr[2].blindDisplayStatus == true
|
|
937
951
|
? '此处隐藏'
|
|
938
952
|
: rowAttrArr[2].value);
|
|
953
|
+
// 启用单元格自动换行 和 自适应行高
|
|
954
|
+
sheet.getCell(totalRowCount, colIndexTitle).wordWrap(true);
|
|
955
|
+
sheet.getCell(totalRowCount, colIndexValue).wordWrap(true);
|
|
956
|
+
sheet.autoFitRow(totalRowCount);
|
|
957
|
+
if (sheet.getRowHeight(totalRowCount) < 31) {
|
|
958
|
+
sheet.setRowHeight(totalRowCount, 31);
|
|
959
|
+
}
|
|
939
960
|
curRowCells.push({ row: totalRowCount, col: colIndexTitle });
|
|
940
961
|
curRowCells.push({ row: totalRowCount, col: colIndexValue });
|
|
941
962
|
setFontSizeFamily(totalRowCount, colIndexTitle);
|