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.cjs.js
CHANGED
|
@@ -19492,11 +19492,12 @@ const FormulaUtils = {
|
|
|
19492
19492
|
},
|
|
19493
19493
|
],
|
|
19494
19494
|
funCallback: (spread, sheet, retData) => {
|
|
19495
|
-
|
|
19496
|
-
|
|
19497
|
-
|
|
19495
|
+
// 如果传递的参数小于5个,则返回空字符串
|
|
19496
|
+
// 本来有6个参数,最后一个参数可以不传,默认为:0
|
|
19497
|
+
if (retData.allCellValsEw.length < 5) {
|
|
19498
|
+
return '/';
|
|
19498
19499
|
}
|
|
19499
|
-
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];
|
|
19500
|
+
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];
|
|
19500
19501
|
try {
|
|
19501
19502
|
// 处理array1和array2的默认值
|
|
19502
19503
|
if (array1 == null || array1 == undefined || (typeof array1 == 'string' && array1.trim().length == 0)) {
|