cnhis-design-vue 3.4.0-beta.55 → 3.4.0-beta.58

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.
@@ -66,10 +66,26 @@ function isMatchNewLowCodeConditionsWithSqlExpression(formData, config) {
66
66
  config.compareMap
67
67
  );
68
68
  }
69
+ if (condition.valueType === "range") {
70
+ return isInRange(value, condition.value);
71
+ }
69
72
  return isMatchLowCodeCondition(value, { con: condition.type, value: condition.value }, config.compareMap);
70
73
  });
71
74
  return isConditionsMatchSqlExpression(conditions, config.sqlExpression);
72
75
  }
76
+ function isInRange(value, range) {
77
+ if (!isArray(range) || range.length !== 2)
78
+ return false;
79
+ const [min, max] = range.map((v) => +v);
80
+ if (Number.isNaN(min) || Number.isNaN(max))
81
+ return false;
82
+ if (!isNumber(value) && !isString(value))
83
+ return false;
84
+ const numberValue = +value;
85
+ if (Number.isNaN(numberValue))
86
+ return false;
87
+ return numberValue >= min && numberValue <= max;
88
+ }
73
89
  function handleFieldTriggerSetValue(bindEventSetting, {
74
90
  getter,
75
91
  setter
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.4.0-beta.55",
3
+ "version": "3.4.0-beta.58",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -73,5 +73,5 @@
73
73
  "iOS 7",
74
74
  "last 3 iOS versions"
75
75
  ],
76
- "gitHead": "aa600b97d49387ac854e3591a6a0ff34dc91dd17"
76
+ "gitHead": "e1fd269cd0c3d98a766885c3abe074ec04c136d0"
77
77
  }