rapid-spreadjs 1.0.25 → 1.0.26
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 +2 -2
- 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 +2 -2
- 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.cjs.js
CHANGED
|
@@ -535,6 +535,8 @@ const BusinessUtils = {
|
|
|
535
535
|
const testObjectAttrsChunk = rapidUtils.chunkJson(testObjectAttrs, rowTestObjectCount);
|
|
536
536
|
// 暂停绘制
|
|
537
537
|
sheet.suspendPaint();
|
|
538
|
+
// 设置工作表行数为0
|
|
539
|
+
sheet.setRowCount(0);
|
|
538
540
|
for (let i = 0; i < testObjectAttrsChunk.length; i++) {
|
|
539
541
|
const rowAttrArr = testObjectAttrsChunk[i];
|
|
540
542
|
// 获取总行数
|
|
@@ -594,8 +596,6 @@ const BusinessUtils = {
|
|
|
594
596
|
const testObjectAttrsChunk = rapidUtils.chunkJson(testObjectAttrs, rowTestObjectCount);
|
|
595
597
|
// 暂停绘制
|
|
596
598
|
sheet.suspendPaint();
|
|
597
|
-
// 设置工作表行数为0
|
|
598
|
-
sheet.setRowCount(0);
|
|
599
599
|
// 所有单元格对象
|
|
600
600
|
const allCells = SheetUtils.getAllCellObjsByRange(sheet, {
|
|
601
601
|
row: 0,
|