shineout 3.4.7 → 3.4.8

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.7'
495
+ version: '3.4.8'
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.7');
11987
+ /* harmony default export */ var version = ('3.4.8');
11988
11988
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11989
11989
 
11990
11990
 
@@ -32572,19 +32572,18 @@ function useInputAble(props) {
32572
32572
  var render = useRender(syncValue);
32573
32573
  var shouldUseState = delay || !control;
32574
32574
  var value = shouldUseState ? stateValue : valuePo;
32575
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
32576
- if (context.timer) {
32577
- clearTimeout(context.timer);
32578
- context.timer = null;
32579
- }
32575
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
32580
32576
  if (delay && control && props.value !== stateValue) {
32581
32577
  changeStateValue(props.value);
32578
+ } else if (context.timer) {
32579
+ clearTimeout(context.timer);
32580
+ context.timer = null;
32582
32581
  }
32583
32582
  }, [props.value, delay, control]);
32584
32583
  var forceDelayChange = use_persist_fn(function () {
32585
- if (context.timer && context.delayChange) {
32584
+ if (context.delayChange) context.delayChange();
32585
+ if (context.timer) {
32586
32586
  clearTimeout(context.timer);
32587
- context.delayChange();
32588
32587
  context.timer = null;
32589
32588
  context.delayChange = null;
32590
32589
  }
@@ -65463,7 +65462,7 @@ var upload_interface = __webpack_require__(8821);
65463
65462
 
65464
65463
 
65465
65464
  /* harmony default export */ var src_0 = ({
65466
- version: '3.4.7'
65465
+ version: '3.4.8'
65467
65466
  });
65468
65467
  }();
65469
65468
  /******/ return __webpack_exports__;