shineout 3.10.0-beta.6 → 3.10.0-beta.7

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 CHANGED
@@ -537,5 +537,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
537
537
  // 此文件由脚本自动生成,请勿直接修改。
538
538
  // This file was generated automatically by a script. Please do not modify it directly.
539
539
  var _default = exports.default = {
540
- version: '3.10.0-beta.6'
540
+ version: '3.10.0-beta.7'
541
541
  };
package/dist/shineout.js CHANGED
@@ -12336,7 +12336,7 @@ var handleStyle = function handleStyle(style) {
12336
12336
  };
12337
12337
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12338
12338
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12339
- /* harmony default export */ var version = ('3.10.0-beta.6');
12339
+ /* harmony default export */ var version = ('3.10.0-beta.7');
12340
12340
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12341
12341
 
12342
12342
 
@@ -50007,7 +50007,15 @@ var DatePicker = function DatePicker(props0) {
50007
50007
  onKeyDown: function onKeyDown(e) {
50008
50008
  if (e.key === 'Enter') {
50009
50009
  if (open) {
50010
- handleClose();
50010
+ // needConfirm + inputable 时,先用宽松模式解析输入框的值,回车视为确认操作
50011
+ if (props.needConfirm && props.inputable) {
50012
+ inputRef.current.inputRefs.forEach(function (el, index) {
50013
+ if (el && el.value) {
50014
+ func.handleInputBlur(el.value, index);
50015
+ }
50016
+ });
50017
+ }
50018
+ handleClose(props.needConfirm && props.inputable);
50011
50019
  } else {
50012
50020
  openPop();
50013
50021
  }
@@ -77858,7 +77866,7 @@ var watermark_interface = __webpack_require__(6640);
77858
77866
 
77859
77867
 
77860
77868
  /* harmony default export */ var src_0 = ({
77861
- version: '3.10.0-beta.6'
77869
+ version: '3.10.0-beta.7'
77862
77870
  });
77863
77871
  }();
77864
77872
  /******/ return __webpack_exports__;