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 CHANGED
@@ -11621,7 +11621,9 @@ function useFormEvents({
11621
11621
  if (typeof componentProps === "function") {
11622
11622
  _props = _props({ formModel });
11623
11623
  }
11624
- formModel[key2] = value ? (_props == null ? void 0 : _props.valueFormat) ? value : dateUtil(value) : null;
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
- formModel[key2] = value ? (_props == null ? void 0 : _props.valueFormat) ? value : utils.dateUtil(value) : null;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.14.88",
3
+ "version": "2.14.89",
4
4
  "description": "",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",