rapid-spreadjs 1.0.69 → 1.0.71

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
@@ -19484,7 +19484,7 @@ const FormulaUtils = {
19484
19484
  if (array2 == null || array2 == undefined || (typeof array2 == 'string' && array2.trim().length == 0)) {
19485
19485
  array2 = [];
19486
19486
  }
19487
- if (typeof array1 == 'string' && array1.trim().length > 0) {
19487
+ if (typeof array1 == 'number' || (typeof array1 == 'string' && array1.trim().length > 0)) {
19488
19488
  array1 = [array1];
19489
19489
  }
19490
19490
  if (typeof array2 == 'string' && array2.trim().length > 0) {
@@ -19688,21 +19688,7 @@ const FormulaUtils = {
19688
19688
  },
19689
19689
  ],
19690
19690
  funCallback: (spread, sheet, retData) => {
19691
- //如果传递的参数小于3个,则返回空字符串
19692
- if (retData.allCellValsEw.length < 3) {
19693
- return '';
19694
- }
19695
- let xData = FormulaUtils.commFun.convertToInt(retData.allCellValsEw[0].filter((item) => FormulaUtils.commFun.isNumber(item))), yData = FormulaUtils.commFun.convertToInt(retData.allCellValsEw[1].filter((item) => FormulaUtils.commFun.isNumber(item))), x = retData.allCellValsEw[2];
19696
- if (Array.isArray(x) && x.length > 0) {
19697
- x = Number(x[0]);
19698
- }
19699
- else {
19700
- x = Number(x);
19701
- }
19702
- console.log(111, retData);
19703
- console.log(222, xData);
19704
- console.log(333, yData);
19705
- console.log(444, x);
19691
+ console.log(retData);
19706
19692
  return 'OK';
19707
19693
  },
19708
19694
  },