shineout 3.6.6-beta.7 → 3.6.6-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.6-
|
|
517
|
+
version: '3.6.6-fix.1'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12217
12217
|
};
|
|
12218
12218
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12219
12219
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12220
|
-
/* harmony default export */ var version = ('3.6.6-
|
|
12220
|
+
/* harmony default export */ var version = ('3.6.6-fix.1');
|
|
12221
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12222
12222
|
|
|
12223
12223
|
|
|
@@ -34924,19 +34924,18 @@ function useInputAble(props) {
|
|
|
34924
34924
|
var render = useRender(syncValue);
|
|
34925
34925
|
var shouldUseState = delay || !control;
|
|
34926
34926
|
var value = shouldUseState ? stateValue : valuePo;
|
|
34927
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
34928
|
-
if (context.timer) {
|
|
34929
|
-
clearTimeout(context.timer);
|
|
34930
|
-
context.timer = null;
|
|
34931
|
-
}
|
|
34927
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
34932
34928
|
if (delay && control && props.value !== stateValue) {
|
|
34933
34929
|
changeStateValue(props.value);
|
|
34930
|
+
} else if (context.timer) {
|
|
34931
|
+
clearTimeout(context.timer);
|
|
34932
|
+
context.timer = null;
|
|
34934
34933
|
}
|
|
34935
34934
|
}, [props.value, delay, control]);
|
|
34936
34935
|
var forceDelayChange = use_persist_fn(function () {
|
|
34937
|
-
if (context.
|
|
34936
|
+
if (context.delayChange) context.delayChange();
|
|
34937
|
+
if (context.timer) {
|
|
34938
34938
|
clearTimeout(context.timer);
|
|
34939
|
-
context.delayChange();
|
|
34940
34939
|
context.timer = null;
|
|
34941
34940
|
context.delayChange = null;
|
|
34942
34941
|
}
|
|
@@ -70082,7 +70081,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
70082
70081
|
|
|
70083
70082
|
|
|
70084
70083
|
/* harmony default export */ var src_0 = ({
|
|
70085
|
-
version: '3.6.6-
|
|
70084
|
+
version: '3.6.6-fix.1'
|
|
70086
70085
|
});
|
|
70087
70086
|
}();
|
|
70088
70087
|
/******/ return __webpack_exports__;
|