rapid-spreadjs 1.0.88 → 1.0.89
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 +7 -7
- 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 +7 -7
- 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
|
@@ -20003,7 +20003,7 @@ const FormulaUtils = {
|
|
|
20003
20003
|
isAcceptArea: true,
|
|
20004
20004
|
funParams: [
|
|
20005
20005
|
{
|
|
20006
|
-
name: '
|
|
20006
|
+
name: '需要用作判断的数字数组、字符串数组或单值',
|
|
20007
20007
|
repeatable: false,
|
|
20008
20008
|
optional: false,
|
|
20009
20009
|
},
|
|
@@ -20039,7 +20039,7 @@ const FormulaUtils = {
|
|
|
20039
20039
|
if (retData.allCellValsEw.length < 5) {
|
|
20040
20040
|
return '/';
|
|
20041
20041
|
}
|
|
20042
|
-
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
|
|
20042
|
+
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 < 6 ? 0 : retData.allCellValsEw[5];
|
|
20043
20043
|
try {
|
|
20044
20044
|
// 处理array1和array2的默认值
|
|
20045
20045
|
if (array1 == null || array1 == undefined || (typeof array1 == 'string' && array1.trim().length == 0)) {
|
|
@@ -20108,7 +20108,7 @@ const FormulaUtils = {
|
|
|
20108
20108
|
case '>':
|
|
20109
20109
|
case '>':
|
|
20110
20110
|
if (isSingleValue1) {
|
|
20111
|
-
conditionMet =
|
|
20111
|
+
conditionMet = num2 > num1;
|
|
20112
20112
|
}
|
|
20113
20113
|
else {
|
|
20114
20114
|
conditionMet = num1 > numValue;
|
|
@@ -20117,7 +20117,7 @@ const FormulaUtils = {
|
|
|
20117
20117
|
case '<':
|
|
20118
20118
|
case '<':
|
|
20119
20119
|
if (isSingleValue1) {
|
|
20120
|
-
conditionMet =
|
|
20120
|
+
conditionMet = num2 < num1;
|
|
20121
20121
|
}
|
|
20122
20122
|
else {
|
|
20123
20123
|
conditionMet = num1 < numValue;
|
|
@@ -20127,7 +20127,7 @@ const FormulaUtils = {
|
|
|
20127
20127
|
case '≥':
|
|
20128
20128
|
case '≧':
|
|
20129
20129
|
if (isSingleValue1) {
|
|
20130
|
-
conditionMet =
|
|
20130
|
+
conditionMet = num2 >= num1;
|
|
20131
20131
|
}
|
|
20132
20132
|
else {
|
|
20133
20133
|
conditionMet = num1 >= numValue;
|
|
@@ -20137,7 +20137,7 @@ const FormulaUtils = {
|
|
|
20137
20137
|
case '≤':
|
|
20138
20138
|
case '≦':
|
|
20139
20139
|
if (isSingleValue1) {
|
|
20140
|
-
conditionMet =
|
|
20140
|
+
conditionMet = num2 <= num1;
|
|
20141
20141
|
}
|
|
20142
20142
|
else {
|
|
20143
20143
|
conditionMet = num1 <= numValue;
|
|
@@ -20146,7 +20146,7 @@ const FormulaUtils = {
|
|
|
20146
20146
|
case '=':
|
|
20147
20147
|
case '=':
|
|
20148
20148
|
if (isSingleValue1) {
|
|
20149
|
-
conditionMet =
|
|
20149
|
+
conditionMet = num2 === num1;
|
|
20150
20150
|
}
|
|
20151
20151
|
else {
|
|
20152
20152
|
conditionMet = num1 === numValue;
|