@ucloud-fe/react-components 1.3.2 → 1.3.6

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.
@@ -133,6 +133,8 @@ var Input = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
133
133
  var _inputRef$current;
134
134
 
135
135
  (0, _newArrowCheck2.default)(this, _this2);
136
+ // 避免影响输入框的选中、移动光标等操作
137
+ if (e.target === inputRef.current) return;
136
138
  e.preventDefault();
137
139
  (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
138
140
  }.bind(this), []);
@@ -120,12 +120,12 @@ var Modal = (_dec = (0, _localeConsumerDecorator.default)({
120
120
  style: {
121
121
  marginRight: 8
122
122
  }
123
- }, okButtonProps), locale.cancel), /*#__PURE__*/_react.default.createElement(_Button.default, (0, _extends2.default)({
123
+ }, cancelButtonProps), locale.cancel), /*#__PURE__*/_react.default.createElement(_Button.default, (0, _extends2.default)({
124
124
  size: "lg",
125
125
  key: "confirm",
126
126
  onClick: onOk,
127
127
  styleType: "primary"
128
- }, cancelButtonProps), locale.confirm)];
128
+ }, okButtonProps), locale.confirm)];
129
129
  }.bind(this);
130
130
 
131
131
  _this2.savePopupContainer = function (ref) {