shineout 3.6.2-beta.6 → 3.6.2-fix.1
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 +1 -1
- package/dist/shineout.js +8 -9
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.6.2-
|
|
517
|
+
version: '3.6.2-fix.1'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12139,7 +12139,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12139
12139
|
};
|
|
12140
12140
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12141
12141
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12142
|
-
/* harmony default export */ var version = ('3.6.2-
|
|
12142
|
+
/* harmony default export */ var version = ('3.6.2-fix.1');
|
|
12143
12143
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12144
12144
|
|
|
12145
12145
|
|
|
@@ -34737,19 +34737,18 @@ function useInputAble(props) {
|
|
|
34737
34737
|
var render = useRender(syncValue);
|
|
34738
34738
|
var shouldUseState = delay || !control;
|
|
34739
34739
|
var value = shouldUseState ? stateValue : valuePo;
|
|
34740
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
34741
|
-
if (context.timer) {
|
|
34742
|
-
clearTimeout(context.timer);
|
|
34743
|
-
context.timer = null;
|
|
34744
|
-
}
|
|
34740
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
34745
34741
|
if (delay && control && props.value !== stateValue) {
|
|
34746
34742
|
changeStateValue(props.value);
|
|
34743
|
+
} else if (context.timer) {
|
|
34744
|
+
clearTimeout(context.timer);
|
|
34745
|
+
context.timer = null;
|
|
34747
34746
|
}
|
|
34748
34747
|
}, [props.value, delay, control]);
|
|
34749
34748
|
var forceDelayChange = use_persist_fn(function () {
|
|
34750
|
-
if (context.
|
|
34749
|
+
if (context.delayChange) context.delayChange();
|
|
34750
|
+
if (context.timer) {
|
|
34751
34751
|
clearTimeout(context.timer);
|
|
34752
|
-
context.delayChange();
|
|
34753
34752
|
context.timer = null;
|
|
34754
34753
|
context.delayChange = null;
|
|
34755
34754
|
}
|
|
@@ -69752,7 +69751,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69752
69751
|
|
|
69753
69752
|
|
|
69754
69753
|
/* harmony default export */ var src_0 = ({
|
|
69755
|
-
version: '3.6.2-
|
|
69754
|
+
version: '3.6.2-fix.1'
|
|
69756
69755
|
});
|
|
69757
69756
|
}();
|
|
69758
69757
|
/******/ return __webpack_exports__;
|