@easyv/react-components 0.0.11 → 0.0.12

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.
@@ -51,7 +51,7 @@ var XInput = /*#__PURE__*/forwardRef(function (props, ref) {
51
51
  var handlePressEnter = useCallback(function (e) {
52
52
  e.currentTarget.blur();
53
53
  onPressEnter === null || onPressEnter === void 0 ? void 0 : onPressEnter(e);
54
- }, []);
54
+ }, [onPressEnter]);
55
55
 
56
56
  // 聚焦自动选中
57
57
  var handleFocus = useCallback(function (e) {
@@ -59,11 +59,11 @@ var XInput = /*#__PURE__*/forwardRef(function (props, ref) {
59
59
  e.currentTarget.select();
60
60
  }
61
61
  onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
62
- }, []);
62
+ }, [onFocus]);
63
63
  var handleChange = useCallback(function (value, e) {
64
64
  setLocalValue(value);
65
65
  onChange === null || onChange === void 0 ? void 0 : onChange(value, e);
66
- }, []);
66
+ }, [onChange]);
67
67
  var handleBlur = useCallback(function (e) {
68
68
  if (refValue.current !== undefined && refValue.current !== props.value) {
69
69
  if (enableEmpty || refValue.current !== '') {
@@ -74,7 +74,7 @@ var XInput = /*#__PURE__*/forwardRef(function (props, ref) {
74
74
  }
75
75
  }
76
76
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
77
- }, [props.value]);
77
+ }, [props.value, props.onBlurChange, onBlur]);
78
78
  var halfControlledProps = {
79
79
  value: localValue,
80
80
  onChange: handleChange,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/react-components",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "a react component library base on arco design",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",