@hw-component/form 1.10.53 → 1.10.55

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.
@@ -4,7 +4,7 @@ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWitho
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
  import { DatePicker } from 'antd';
6
6
  import { useGetTimeKey, useRangeValueProvider, useRangePickerTimeVal } from './hooks.js';
7
- import { useMemo } from 'react';
7
+ import React, { useMemo } from 'react';
8
8
  import { useMatchConfigProps } from '../hooks/index.js';
9
9
  import HFormConnect from '../Form/HFormConnect.js';
10
10
 
@@ -114,7 +114,7 @@ var HRangePicker = function HRangePicker(_ref, ref) {
114
114
  }
115
115
  }, props));
116
116
  };
117
- var Index = HFormConnect(HRangePicker);
117
+ var Index = HFormConnect(/*#__PURE__*/React.forwardRef(HRangePicker));
118
118
  var HRangePicker$1 = {
119
119
  Component: Index,
120
120
  placeholder: function placeholder(_ref3) {
@@ -117,7 +117,7 @@ var HRangePicker = function HRangePicker(_ref, ref) {
117
117
  }
118
118
  }, props));
119
119
  };
120
- var Index = HFormConnect.default(HRangePicker);
120
+ var Index = HFormConnect.default(/*#__PURE__*/React.forwardRef(HRangePicker));
121
121
  var HRangePicker$1 = {
122
122
  Component: Index,
123
123
  placeholder: function placeholder(_ref3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "1.10.53",
3
+ "version": "1.10.55",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -112,7 +112,7 @@ const HRangePicker: React.ForwardRefRenderFunction<HRangePickerPropsRef,HRangePi
112
112
  />
113
113
  );
114
114
  };
115
- const Index = HFormConnect(HRangePicker);
115
+ const Index = HFormConnect(React.forwardRef(HRangePicker) as any);
116
116
  export default {
117
117
  Component: Index,
118
118
  placeholder: ({ label }: HItemProps) => {