shineout 3.7.4-beta.8 → 3.7.4-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
|
@@ -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.7.4-
|
|
525
|
+
version: '3.7.4-fix.1'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12236
12236
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12237
|
-
/* harmony default export */ var version = ('3.7.4-
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.4-fix.1');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -35535,19 +35535,18 @@ function useInputAble(props) {
|
|
|
35535
35535
|
var render = useRender(syncValue);
|
|
35536
35536
|
var shouldUseState = delay || !control;
|
|
35537
35537
|
var value = shouldUseState ? stateValue : valuePo;
|
|
35538
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
35539
|
-
if (context.timer) {
|
|
35540
|
-
clearTimeout(context.timer);
|
|
35541
|
-
context.timer = null;
|
|
35542
|
-
}
|
|
35538
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
35543
35539
|
if (delay && control && props.value !== stateValue) {
|
|
35544
35540
|
changeStateValue(props.value);
|
|
35541
|
+
} else if (context.timer) {
|
|
35542
|
+
clearTimeout(context.timer);
|
|
35543
|
+
context.timer = null;
|
|
35545
35544
|
}
|
|
35546
35545
|
}, [props.value, delay, control]);
|
|
35547
35546
|
var forceDelayChange = use_persist_fn(function () {
|
|
35548
|
-
if (context.
|
|
35547
|
+
if (context.delayChange) context.delayChange();
|
|
35548
|
+
if (context.timer) {
|
|
35549
35549
|
clearTimeout(context.timer);
|
|
35550
|
-
context.delayChange();
|
|
35551
35550
|
context.timer = null;
|
|
35552
35551
|
context.delayChange = null;
|
|
35553
35552
|
}
|
|
@@ -71610,7 +71609,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71610
71609
|
|
|
71611
71610
|
|
|
71612
71611
|
/* harmony default export */ var src_0 = ({
|
|
71613
|
-
version: '3.7.4-
|
|
71612
|
+
version: '3.7.4-fix.1'
|
|
71614
71613
|
});
|
|
71615
71614
|
}();
|
|
71616
71615
|
/******/ return __webpack_exports__;
|