rapid-spreadjs 1.0.162 → 1.0.163

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
@@ -1392,12 +1392,13 @@ const BusinessUtils = {
1392
1392
  * @param dynamicLoadRangeJson 动态加载的“试验结果”JSON数组范围,格式如:[{row: 1, col: 1, rowCount: 1, colCount: 1}]
1393
1393
  * @param headerRangeHeight 表头区域总高度
1394
1394
  * @param footerRangeHeight 表尾区域总高度
1395
+ * @param ended 绘制完成后的回调函数,返回一个参数rowIndex,格式如:{hasValueIndex: [1, 2, 3], noValueIndex: [4, 5, 6]},hasValueIndex代表所有显示的行索引,noValueIndex代表所有隐藏的行索引
1395
1396
  * @param remainingHeight 剩余高度(针对纵表情况,工作表总高度-表头和表尾总高度>=remainingHeight,空白行不显示;<remainingHeight,空白行显示)
1396
1397
  * @param pageDir 页面方向(1:纵向、2:横向)
1397
1398
  * @param blankRowCellValue 空白行单元格值,默认为:空白
1398
1399
  * @returns 返回所有需要显示和隐藏的行索引结果对象,格式如:{hasValueIndex: [1, 2, 3], noValueIndex: [4, 5, 6]},hasValueIndex代表所有显示的行索引,noValueIndex代表所有隐藏的行索引
1399
1400
  */
1400
- dynamicLoadRows: (GC, spread, dynamicLoadRangeJson, headerRangeHeight, footerRangeHeight, remainingHeight = 500, pageDir = 1, blankRowCellValue = '空白') => {
1401
+ dynamicLoadRows: (GC, spread, dynamicLoadRangeJson, headerRangeHeight, footerRangeHeight, ended = null, remainingHeight = 500, pageDir = 1, blankRowCellValue = '空白') => {
1401
1402
  const sheet = spread.getActiveSheet();
1402
1403
  // 暂停绘制
1403
1404
  sheet.suspendPaint();
@@ -1608,6 +1609,10 @@ const BusinessUtils = {
1608
1609
  // });
1609
1610
  // 恢复绘制
1610
1611
  sheet.resumePaint();
1612
+ // 执行绘制完成后的回调函数
1613
+ if (ended != null && ended != undefined && typeof ended === 'function') {
1614
+ ended({ hasValueIndex: hasValueRows, noValueIndex: noValueRows });
1615
+ }
1611
1616
  return { hasValueIndex: hasValueRows, noValueIndex: noValueRows };
1612
1617
  },
1613
1618
  /**