shineout 3.9.0-beta.29 → 3.9.0-beta.30

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.0-beta.29'
525
+ version: '3.9.0-beta.30'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12400,7 +12400,7 @@ var handleStyle = function handleStyle(style) {
12400
12400
  };
12401
12401
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12402
12402
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12403
- /* harmony default export */ var version = ('3.9.0-beta.29');
12403
+ /* harmony default export */ var version = ('3.9.0-beta.30');
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12405
12405
 
12406
12406
 
@@ -37001,19 +37001,18 @@ function useInputAble(props) {
37001
37001
  var render = useRender(syncValue);
37002
37002
  var shouldUseState = delay || !control;
37003
37003
  var value = shouldUseState ? stateValue : valuePo;
37004
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
37005
- if (context.timer) {
37006
- clearTimeout(context.timer);
37007
- context.timer = null;
37008
- }
37004
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
37009
37005
  if (delay && control && props.value !== stateValue) {
37010
37006
  changeStateValue(props.value);
37007
+ } else if (context.timer) {
37008
+ clearTimeout(context.timer);
37009
+ context.timer = null;
37011
37010
  }
37012
37011
  }, [props.value, delay, control]);
37013
37012
  var forceDelayChange = use_persist_fn(function () {
37014
- if (context.timer && context.delayChange) {
37013
+ if (context.delayChange) context.delayChange();
37014
+ if (context.timer) {
37015
37015
  clearTimeout(context.timer);
37016
- context.delayChange();
37017
37016
  context.timer = null;
37018
37017
  context.delayChange = null;
37019
37018
  }
@@ -74295,7 +74294,7 @@ var upload_interface = __webpack_require__(8821);
74295
74294
 
74296
74295
 
74297
74296
  /* harmony default export */ var src_0 = ({
74298
- version: '3.9.0-beta.29'
74297
+ version: '3.9.0-beta.30'
74299
74298
  });
74300
74299
  }();
74301
74300
  /******/ return __webpack_exports__;