rapid-spreadjs 1.0.93 → 1.0.95

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
@@ -629,9 +629,10 @@ const SheetUtils = {
629
629
  * 获取工作表中所有纯值、无值或公式单元格的范围选择字符串
630
630
  * @param sheet 工作表对象
631
631
  * @param getType 获取类型(1:纯值、2:无值、3:公式),默认为:1
632
+ * @param range 单元格范围,格式为:{ row: number; col: number; rowCount: number; colCount: number }
632
633
  */
633
- getCellsRangeStr: (sheet, getType = 1) => {
634
- const range = { row: 0, col: 1, rowCount: sheet.getRowCount(), colCount: 77 };
634
+ getCellsRangeStr: (sheet, getType, range) => {
635
+ // const range = { row: 0, col: 1, rowCount: sheet.getRowCount(), colCount: 77 };
635
636
  // 所有单元格对象集合
636
637
  const allCells = SheetUtils.getAllCellObjsByRanges(sheet, [range]);
637
638
  // 最终需要的单元格对象集合
@@ -647,7 +648,7 @@ const SheetUtils = {
647
648
  retCells.push(cell);
648
649
  // 如果为无值类型,则设置单元格格式为文本格式
649
650
  if (getType == 2 && (value == null || value == undefined || value == '')) {
650
- sheet.setFormatter(0, 0, '@');
651
+ sheet.setFormatter(cell.row, cell.col, '@');
651
652
  }
652
653
  }
653
654
  });
@@ -4081,6 +4082,7 @@ const EChartsUtilsAll = {
4081
4082
  chart30: (config, xDataArr, yDataArr, sheet) => {
4082
4083
  let lineData = JSON.parse(config.chartLinesJson);
4083
4084
  const chartExtJson = config.chartExtJson == null || config.chartExtJson == undefined ? null : JSON.parse(config.chartExtJson);
4085
+ debugger;
4084
4086
  //设置是否选择校正jsIsJz的默认值
4085
4087
  if (chartExtJson != null && (chartExtJson.jsIsJz == null || chartExtJson.jsIsJz == undefined)) {
4086
4088
  chartExtJson.jsIsJz = true;