@easyv/react-components 0.3.8 → 0.3.9

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.
@@ -140,12 +140,6 @@ var InputTextArea = /*#__PURE__*/forwardRef(function (props, ref) {
140
140
  }
141
141
  }, [value, changeOnBlur]);
142
142
 
143
- // 修改组件库的默认行为:按回车失去焦点
144
- var handlePressEnter = useCallback(function (e) {
145
- e.currentTarget.blur();
146
- onPressEnter === null || onPressEnter === void 0 ? void 0 : onPressEnter(e);
147
- }, [onPressEnter]);
148
-
149
143
  // changeOnBlur 为 true 模式下,修改的值存本地
150
144
  var handleChange = useCallback(function (value) {
151
145
  setLocalValue(value);
@@ -165,7 +159,6 @@ var InputTextArea = /*#__PURE__*/forwardRef(function (props, ref) {
165
159
  var halfControlledProps = (_halfControlledProps2 = {}, _defineProperty(_halfControlledProps2, 'value' in props ? 'value' : 'defaultValue', localValue), _defineProperty(_halfControlledProps2, "onChange", handleChange), _defineProperty(_halfControlledProps2, "onBlur", handleBlur), _halfControlledProps2);
166
160
  return /*#__PURE__*/_jsx(Input.TextArea, _objectSpread(_objectSpread({
167
161
  ref: ref,
168
- onPressEnter: handlePressEnter,
169
162
  className: classNames({
170
163
  'arco-textarea-borderless': !bordered
171
164
  }, className)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/react-components",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "a react component library base on arco design",
5
5
  "license": "MIT",
6
6
  "sideEffects": [