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.cjs.js CHANGED
@@ -19506,7 +19506,7 @@ const FormulaUtils = {
19506
19506
  if (array2 == null || array2 == undefined || (typeof array2 == 'string' && array2.trim().length == 0)) {
19507
19507
  array2 = [];
19508
19508
  }
19509
- if (typeof array1 == 'string' && array1.trim().length > 0) {
19509
+ if (typeof array1 == 'number' || (typeof array1 == 'string' && array1.trim().length > 0)) {
19510
19510
  array1 = [array1];
19511
19511
  }
19512
19512
  if (typeof array2 == 'string' && array2.trim().length > 0) {
@@ -19710,21 +19710,7 @@ const FormulaUtils = {
19710
19710
  },
19711
19711
  ],
19712
19712
  funCallback: (spread, sheet, retData) => {
19713
- //如果传递的参数小于3个,则返回空字符串
19714
- if (retData.allCellValsEw.length < 3) {
19715
- return '';
19716
- }
19717
- 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];
19718
- if (Array.isArray(x) && x.length > 0) {
19719
- x = Number(x[0]);
19720
- }
19721
- else {
19722
- x = Number(x);
19723
- }
19724
- console.log(111, retData);
19725
- console.log(222, xData);
19726
- console.log(333, yData);
19727
- console.log(444, x);
19713
+ console.log(retData);
19728
19714
  return 'OK';
19729
19715
  },
19730
19716
  },