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.
- package/README.md +87 -87
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +69 -117
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +75 -117
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +65 -113
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +152 -208
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +3 -3
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +194 -272
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +8 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useData.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +3 -2
- package/es/shared/utils/business.js +16 -0
- package/package.json +2 -2
|
@@ -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.
|
|
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": "
|
|
76
|
+
"gitHead": "e1fd269cd0c3d98a766885c3abe074ec04c136d0"
|
|
77
77
|
}
|