shineout 3.4.4-beta.11 → 3.4.4-beta.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.
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.11'
495
+ version: '3.4.4-beta.12'
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.11');
11987
+ /* harmony default export */ var version = ('3.4.4-beta.12');
11988
11988
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11989
11989
 
11990
11990
 
@@ -29873,6 +29873,7 @@ var useContainer = function useContainer() {
29873
29873
 
29874
29874
 
29875
29875
  var AbsoluteContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext)(false);
29876
+ AbsoluteContext.displayName = 'AbsoluteContext';
29876
29877
  /* harmony default export */ var absolute_context = (AbsoluteContext);
29877
29878
  ;// CONCATENATED MODULE: ../base/src/absolute-list/absolute-list.tsx
29878
29879
 
@@ -37694,16 +37695,19 @@ var result_Result = function Result(props) {
37694
37695
  }
37695
37696
 
37696
37697
  // 单选场景下,焦点时自动选中input文本
37697
- if (focus && showInput && mounted.current) {
37698
- var nextValue = getValueArr(value);
37699
- props.setInputText(nextValue[0]);
37698
+ if (!multiple && focus && showInput && mounted.current) {
37699
+ var _result2 = getDataByValues(value);
37700
+ if (_result2.length > 0) {
37701
+ var inputTmpText = renderResultContent(_result2[0]);
37702
+ inputTmpText && props.setInputText(inputTmpText);
37703
+ }
37700
37704
  setTimeout(function () {
37701
37705
  var _inputRef$current;
37702
37706
  inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
37703
37707
  }, 10);
37704
37708
  }
37705
37709
  mounted.current = true;
37706
- }, [focus, showInput]);
37710
+ }, [focus, placeholder, multiple]);
37707
37711
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
37708
37712
  handleResetMore();
37709
37713
  }, [valueProp, data]);
@@ -65278,7 +65282,7 @@ var upload_interface = __webpack_require__(8821);
65278
65282
 
65279
65283
 
65280
65284
  /* harmony default export */ var src_0 = ({
65281
- version: '3.4.4-beta.11'
65285
+ version: '3.4.4-beta.12'
65282
65286
  });
65283
65287
  }();
65284
65288
  /******/ return __webpack_exports__;