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.cjs.js +6 -1
- 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 +6 -1
- 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/dist/utils/business.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1414,12 +1414,13 @@ const BusinessUtils = {
|
|
|
1414
1414
|
* @param dynamicLoadRangeJson 动态加载的“试验结果”JSON数组范围,格式如:[{row: 1, col: 1, rowCount: 1, colCount: 1}]
|
|
1415
1415
|
* @param headerRangeHeight 表头区域总高度
|
|
1416
1416
|
* @param footerRangeHeight 表尾区域总高度
|
|
1417
|
+
* @param ended 绘制完成后的回调函数,返回一个参数rowIndex,格式如:{hasValueIndex: [1, 2, 3], noValueIndex: [4, 5, 6]},hasValueIndex代表所有显示的行索引,noValueIndex代表所有隐藏的行索引
|
|
1417
1418
|
* @param remainingHeight 剩余高度(针对纵表情况,工作表总高度-表头和表尾总高度>=remainingHeight,空白行不显示;<remainingHeight,空白行显示)
|
|
1418
1419
|
* @param pageDir 页面方向(1:纵向、2:横向)
|
|
1419
1420
|
* @param blankRowCellValue 空白行单元格值,默认为:空白
|
|
1420
1421
|
* @returns 返回所有需要显示和隐藏的行索引结果对象,格式如:{hasValueIndex: [1, 2, 3], noValueIndex: [4, 5, 6]},hasValueIndex代表所有显示的行索引,noValueIndex代表所有隐藏的行索引
|
|
1421
1422
|
*/
|
|
1422
|
-
dynamicLoadRows: (GC, spread, dynamicLoadRangeJson, headerRangeHeight, footerRangeHeight, remainingHeight = 500, pageDir = 1, blankRowCellValue = '空白') => {
|
|
1423
|
+
dynamicLoadRows: (GC, spread, dynamicLoadRangeJson, headerRangeHeight, footerRangeHeight, ended = null, remainingHeight = 500, pageDir = 1, blankRowCellValue = '空白') => {
|
|
1423
1424
|
const sheet = spread.getActiveSheet();
|
|
1424
1425
|
// 暂停绘制
|
|
1425
1426
|
sheet.suspendPaint();
|
|
@@ -1630,6 +1631,10 @@ const BusinessUtils = {
|
|
|
1630
1631
|
// });
|
|
1631
1632
|
// 恢复绘制
|
|
1632
1633
|
sheet.resumePaint();
|
|
1634
|
+
// 执行绘制完成后的回调函数
|
|
1635
|
+
if (ended != null && ended != undefined && typeof ended === 'function') {
|
|
1636
|
+
ended({ hasValueIndex: hasValueRows, noValueIndex: noValueRows });
|
|
1637
|
+
}
|
|
1633
1638
|
return { hasValueIndex: hasValueRows, noValueIndex: noValueRows };
|
|
1634
1639
|
},
|
|
1635
1640
|
/**
|