3h1-ui 2.14.88 → 2.14.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/es/index.js +3 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -11621,7 +11621,9 @@ function useFormEvents({
|
|
|
11621
11621
|
if (typeof componentProps === "function") {
|
|
11622
11622
|
_props = _props({ formModel });
|
|
11623
11623
|
}
|
|
11624
|
-
|
|
11624
|
+
if (typeof value !== "string")
|
|
11625
|
+
value = dayjs(value);
|
|
11626
|
+
formModel[key2] = value ? (_props == null ? void 0 : _props.valueFormat) ? dayjs(value).format(_props == null ? void 0 : _props.valueFormat) : dateUtil(value) : null;
|
|
11625
11627
|
}
|
|
11626
11628
|
} else {
|
|
11627
11629
|
formModel[key2] = value;
|
package/lib/index.js
CHANGED
|
@@ -11645,7 +11645,9 @@ function useFormEvents({
|
|
|
11645
11645
|
if (typeof componentProps === "function") {
|
|
11646
11646
|
_props = _props({ formModel });
|
|
11647
11647
|
}
|
|
11648
|
-
|
|
11648
|
+
if (typeof value !== "string")
|
|
11649
|
+
value = dayjs(value);
|
|
11650
|
+
formModel[key2] = value ? (_props == null ? void 0 : _props.valueFormat) ? dayjs(value).format(_props == null ? void 0 : _props.valueFormat) : utils.dateUtil(value) : null;
|
|
11649
11651
|
}
|
|
11650
11652
|
} else {
|
|
11651
11653
|
formModel[key2] = value;
|