@hw-component/form 1.9.78 → 1.9.80

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.
@@ -63,7 +63,8 @@ var useTimePickerValue = function useTimePickerValue(_ref4) {
63
63
  var value = _ref4.value,
64
64
  format = _ref4.format;
65
65
  return useMemo(function () {
66
- if (!value || !format) {
66
+ var valStr = value === null || value === void 0 ? void 0 : value.toString();
67
+ if (!valStr || !format) {
67
68
  return value;
68
69
  }
69
70
  if (formatMap[format]) {
@@ -64,7 +64,8 @@ var useTimePickerValue = function useTimePickerValue(_ref4) {
64
64
  var value = _ref4.value,
65
65
  format = _ref4.format;
66
66
  return React.useMemo(function () {
67
- if (!value || !format) {
67
+ var valStr = value === null || value === void 0 ? void 0 : value.toString();
68
+ if (!valStr || !format) {
68
69
  return value;
69
70
  }
70
71
  if (formatMap[format]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.9.78",
3
+ "version": "1.9.80",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -88,7 +88,8 @@ export const useTimePickerValue = ({
88
88
  format,
89
89
  }: UseTimePickerValParams) => {
90
90
  return useMemo(() => {
91
- if (!value || !format) {
91
+ const valStr=value?.toString()
92
+ if (!valStr || !format) {
92
93
  return value;
93
94
  }
94
95
  if (formatMap[format]) {
@@ -23,7 +23,6 @@ const Index: React.ForwardRefRenderFunction<IUploadRefModal, IUpLoadProps> = (
23
23
  thumbUrl,
24
24
  hideAddBtn,
25
25
  children,
26
-
27
26
  ...props
28
27
  },
29
28
  ref
@@ -90,7 +90,7 @@ export default () => {
90
90
  },
91
91
  {
92
92
  label: "富文本",
93
- type: "textArea",
93
+ type: "timePicker",
94
94
  name: "textArea",
95
95
  itemProps:{
96
96
  showCount:true,