rapid-spreadjs 1.0.141 → 1.0.143

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
@@ -1371,11 +1371,12 @@ const BusinessUtils = {
1371
1371
  * @param dynamicLoadRangeJson 动态加载的“试验结果”JSON数组范围,格式如:[{row: 1, col: 1, rowCount: 1, colCount: 1}]
1372
1372
  * @param headerRangeHeight 表头区域总高度
1373
1373
  * @param footerRangeHeight 表尾区域总高度
1374
+ * @param remainingHeight 剩余高度(针对纵表情况,工作表总高度-表头和表尾总高度>=remainingHeight,空白行不显示;<remainingHeight,空白行显示)
1374
1375
  * @param pageDir 页面方向(1:纵向、2:横向)
1375
1376
  * @param blankRowCellValue 空白行单元格值,默认为:空白
1376
1377
  * @returns 返回所有需要显示和隐藏的行索引结果对象,格式如:{hasValueIndex: [1, 2, 3], noValueIndex: [4, 5, 6]},hasValueIndex代表所有显示的行索引,noValueIndex代表所有隐藏的行索引
1377
1378
  */
1378
- dynamicLoadRows: (GC, spread, dynamicLoadRangeJson, headerRangeHeight, footerRangeHeight, pageDir = 1, blankRowCellValue = '空白') => {
1379
+ dynamicLoadRows: (GC, spread, dynamicLoadRangeJson, headerRangeHeight, footerRangeHeight, remainingHeight = 500, pageDir = 1, blankRowCellValue = '空白') => {
1379
1380
  const sheet = spread.getActiveSheet();
1380
1381
  // 暂停绘制
1381
1382
  sheet.suspendPaint();
@@ -1492,10 +1493,10 @@ const BusinessUtils = {
1492
1493
  createBlackRowIndex = i;
1493
1494
  }
1494
1495
  }
1495
- // 针对纵表情况,工作表总高度-表头和表尾总高度>=550,空白行不显示;<550,空白行显示
1496
+ // 针对纵表情况,工作表总高度-表头和表尾总高度>=remainingHeight,空白行不显示;<remainingHeight,空白行显示
1496
1497
  // 是否显示空白行
1497
1498
  let isShowBlankRow = true;
1498
- if (pageDir == 1 && allRowHeight - headerRangeHeight - footerRangeHeight >= 550) {
1499
+ if (pageDir == 1 && allRowHeight - headerRangeHeight - footerRangeHeight >= remainingHeight) {
1499
1500
  isShowBlankRow = false;
1500
1501
  }
1501
1502
  if (!isShowBlankRow) {
@@ -8655,11 +8656,16 @@ const EChartsUtilsAll = {
8655
8656
  let outValDzvi = 0;
8656
8657
  // 设置Sheet单元格的值(输出:单值VI₅₀(mm/s))
8657
8658
  if (chartExtJson != null) {
8658
- if (chartExtJson.jsDzviJd != null && chartExtJson.jsDzviJd != undefined) {
8659
- outJdDzvi = chartExtJson.jsDzviJd;
8659
+ if (!yValIsAllNull) {
8660
+ if (chartExtJson.jsDzviJd != null && chartExtJson.jsDzviJd != undefined) {
8661
+ outJdDzvi = chartExtJson.jsDzviJd;
8662
+ }
8663
+ outValDzvi = EChartsUtilsComm.getRound(x50, outJdDzvi);
8664
+ sheet.setValue(chartExtJson.jsDzvi.row, chartExtJson.jsDzvi.col, outValDzvi);
8665
+ }
8666
+ else {
8667
+ sheet.setValue(chartExtJson.jsDzvi.row, chartExtJson.jsDzvi.col, '/');
8660
8668
  }
8661
- outValDzvi = EChartsUtilsComm.getRound(x50, outJdDzvi);
8662
- sheet.setValue(chartExtJson.jsDzvi.row, chartExtJson.jsDzvi.col, outValDzvi);
8663
8669
  }
8664
8670
  // 配置图表选项
8665
8671
  var option = {