shineout 3.5.2-beta.8 → 3.5.2-beta.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.
package/cjs/index.js CHANGED
@@ -500,5 +500,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
500
500
  // 此文件由脚本自动生成,请勿直接修改。
501
501
  // This file was generated automatically by a script. Please do not modify it directly.
502
502
  var _default = exports.default = {
503
- version: '3.5.2-beta.8'
503
+ version: '3.5.2-beta.9'
504
504
  };
package/dist/shineout.js CHANGED
@@ -12002,7 +12002,7 @@ var handleStyle = function handleStyle(style) {
12002
12002
  };
12003
12003
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12004
12004
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12005
- /* harmony default export */ var version = ('3.5.2-beta.8');
12005
+ /* harmony default export */ var version = ('3.5.2-beta.9');
12006
12006
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12007
12007
 
12008
12008
 
@@ -33246,6 +33246,7 @@ function useInputAble(props) {
33246
33246
  var _props$value;
33247
33247
  var valuePo = props.value,
33248
33248
  onChange = props.onChange,
33249
+ onSameChange = props.onSameChange,
33249
33250
  control = props.control,
33250
33251
  beforeChange = props.beforeChange,
33251
33252
  delay = props.delay;
@@ -33293,7 +33294,10 @@ function useInputAble(props) {
33293
33294
  }
33294
33295
  var vv = v;
33295
33296
  if (other.length === 0 || props.filterSameChange) {
33296
- if (shallowEqual(v, value)) return;
33297
+ if (shallowEqual(v, value)) {
33298
+ if (onSameChange) onSameChange(v);
33299
+ return;
33300
+ }
33297
33301
  }
33298
33302
  if (isFunc(beforeChange)) {
33299
33303
  var temp = beforeChange(v);
@@ -50533,6 +50537,7 @@ var useSelect = function useSelect(props) {
50533
50537
  prediction = props.prediction,
50534
50538
  valueProp = props.value,
50535
50539
  onChangeProp = props.onChange,
50540
+ onSameChange = props.onSameChange,
50536
50541
  filterSameChange = props.filterSameChange,
50537
50542
  noCache = props.noCache;
50538
50543
  var _useInputAble = useInputAble({
@@ -50541,6 +50546,7 @@ var useSelect = function useSelect(props) {
50541
50546
  defaultValue: defaultValue,
50542
50547
  beforeChange: beforeChange,
50543
50548
  onChange: onChangeProp,
50549
+ onSameChange: onSameChange,
50544
50550
  filterSameChange: filterSameChange
50545
50551
  }),
50546
50552
  value = _useInputAble.value,
@@ -52491,6 +52497,12 @@ function Select(props0) {
52491
52497
  if (props.absolute === undefined) return;
52492
52498
  setAbsoluteListUpdateKey(value);
52493
52499
  });
52500
+ var handleSameChange = function handleSameChange() {
52501
+ var shouldFocus = showInput && props.reFocus;
52502
+ if (!multiple && !shouldFocus) {
52503
+ closePop();
52504
+ }
52505
+ };
52494
52506
  var _useSelect = use_select({
52495
52507
  value: valueProp,
52496
52508
  data: data,
@@ -52506,6 +52518,7 @@ function Select(props0) {
52506
52518
  prediction: prediction,
52507
52519
  beforeChange: beforeChange,
52508
52520
  onChange: handleSelectChange,
52521
+ onSameChange: handleSameChange,
52509
52522
  filterSameChange: filterSameChange,
52510
52523
  noCache: noCache
52511
52524
  }),
@@ -66432,7 +66445,7 @@ var upload_interface = __webpack_require__(8821);
66432
66445
 
66433
66446
 
66434
66447
  /* harmony default export */ var src_0 = ({
66435
- version: '3.5.2-beta.8'
66448
+ version: '3.5.2-beta.9'
66436
66449
  });
66437
66450
  }();
66438
66451
  /******/ return __webpack_exports__;