shineout 3.4.4-beta.4 → 3.4.4-beta.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.
- package/cjs/index.js +1 -1
- package/dist/shineout.js +17 -6
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
492
492
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
493
493
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
494
494
|
var _default = exports.default = {
|
|
495
|
-
version: '3.4.4-beta.
|
|
495
|
+
version: '3.4.4-beta.6'
|
|
496
496
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11984,7 +11984,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11984
11984
|
};
|
|
11985
11985
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11986
11986
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11987
|
-
/* harmony default export */ var version = ('3.4.4-beta.
|
|
11987
|
+
/* harmony default export */ var version = ('3.4.4-beta.6');
|
|
11988
11988
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11989
11989
|
|
|
11990
11990
|
|
|
@@ -34017,7 +34017,16 @@ var input_Input = function Input(props) {
|
|
|
34017
34017
|
var forwardProps = removeProps(commonProps, objectSpread2_default()({}, inputFormatParams));
|
|
34018
34018
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(simple_input, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, forwardProps), inputFormatProps), {}, {
|
|
34019
34019
|
value: (_inputFormatProps$val = inputFormatProps.value) !== null && _inputFormatProps$val !== void 0 ? _inputFormatProps$val : '',
|
|
34020
|
-
hasSuffix: !!props.suffix
|
|
34020
|
+
hasSuffix: !!props.suffix,
|
|
34021
|
+
onKeyDown: function onKeyDown(e) {
|
|
34022
|
+
var _props$onKeyDown;
|
|
34023
|
+
if (e.key === 'Enter' && !e.defaultPrevented) {
|
|
34024
|
+
var _props$onChange;
|
|
34025
|
+
var value = e.target.value;
|
|
34026
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, value);
|
|
34027
|
+
}
|
|
34028
|
+
(_props$onKeyDown = props.onKeyDown) === null || _props$onKeyDown === void 0 || _props$onKeyDown.call(props, e);
|
|
34029
|
+
}
|
|
34021
34030
|
}));
|
|
34022
34031
|
};
|
|
34023
34032
|
/* harmony default export */ var base_src_input_input = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().memo(input_Input));
|
|
@@ -46265,10 +46274,12 @@ var useForm = function useForm(props) {
|
|
|
46265
46274
|
});
|
|
46266
46275
|
var handleSubmit = function handleSubmit(other) {
|
|
46267
46276
|
return function (e) {
|
|
46268
|
-
var _other$onSubmit;
|
|
46269
46277
|
e.preventDefault();
|
|
46270
|
-
|
|
46271
|
-
|
|
46278
|
+
setTimeout(function () {
|
|
46279
|
+
var _other$onSubmit;
|
|
46280
|
+
submit();
|
|
46281
|
+
other === null || other === void 0 || (_other$onSubmit = other.onSubmit) === null || _other$onSubmit === void 0 || _other$onSubmit.call(other, e);
|
|
46282
|
+
}, 10);
|
|
46272
46283
|
};
|
|
46273
46284
|
};
|
|
46274
46285
|
var validateFieldset = function validateFieldset(name) {
|
|
@@ -65269,7 +65280,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
65269
65280
|
|
|
65270
65281
|
|
|
65271
65282
|
/* harmony default export */ var src_0 = ({
|
|
65272
|
-
version: '3.4.4-beta.
|
|
65283
|
+
version: '3.4.4-beta.6'
|
|
65273
65284
|
});
|
|
65274
65285
|
}();
|
|
65275
65286
|
/******/ return __webpack_exports__;
|