rapid-spreadjs 1.0.68 → 1.0.69
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 +5 -4
- 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 +5 -4
- 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/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -19470,11 +19470,12 @@ const FormulaUtils = {
|
|
|
19470
19470
|
},
|
|
19471
19471
|
],
|
|
19472
19472
|
funCallback: (spread, sheet, retData) => {
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
19473
|
+
// 如果传递的参数小于5个,则返回空字符串
|
|
19474
|
+
// 本来有6个参数,最后一个参数可以不传,默认为:0
|
|
19475
|
+
if (retData.allCellValsEw.length < 5) {
|
|
19476
|
+
return '/';
|
|
19476
19477
|
}
|
|
19477
|
-
let array1 = retData.allCellValsEw[0], array2 = retData.allCellValsEw[1], operator = retData.allCellValsEw[2], value = retData.allCellValsEw[3], delimiter = retData.allCellValsEw[4], isOpposite = retData.allCellValsEw[5];
|
|
19478
|
+
let array1 = retData.allCellValsEw[0], array2 = retData.allCellValsEw[1], operator = retData.allCellValsEw[2], value = retData.allCellValsEw[3], delimiter = retData.allCellValsEw[4], isOpposite = retData.allCellValsEw.length == 5 ? 0 : retData.allCellValsEw[5];
|
|
19478
19479
|
try {
|
|
19479
19480
|
// 处理array1和array2的默认值
|
|
19480
19481
|
if (array1 == null || array1 == undefined || (typeof array1 == 'string' && array1.trim().length == 0)) {
|