shineout 3.7.11-beta.4 → 3.7.11-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 +9 -10
- 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.11-
|
|
525
|
+
version: '3.7.11-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.11-
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.11-fix.1');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -30371,7 +30371,7 @@ var usePopup = function usePopup(props) {
|
|
|
30371
30371
|
setOpenState(!!props.open);
|
|
30372
30372
|
}, [props.open]);
|
|
30373
30373
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
30374
|
-
if (defaultOpen) {
|
|
30374
|
+
if (props.open === undefined && defaultOpen) {
|
|
30375
30375
|
setOpenState(true);
|
|
30376
30376
|
}
|
|
30377
30377
|
}, []);
|
|
@@ -35837,19 +35837,18 @@ function useInputAble(props) {
|
|
|
35837
35837
|
var render = useRender(syncValue);
|
|
35838
35838
|
var shouldUseState = delay || !control;
|
|
35839
35839
|
var value = shouldUseState ? stateValue : valuePo;
|
|
35840
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
35841
|
-
if (context.timer) {
|
|
35842
|
-
clearTimeout(context.timer);
|
|
35843
|
-
context.timer = null;
|
|
35844
|
-
}
|
|
35840
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
35845
35841
|
if (delay && control && props.value !== stateValue) {
|
|
35846
35842
|
changeStateValue(props.value);
|
|
35843
|
+
} else if (context.timer) {
|
|
35844
|
+
clearTimeout(context.timer);
|
|
35845
|
+
context.timer = null;
|
|
35847
35846
|
}
|
|
35848
35847
|
}, [props.value, delay, control]);
|
|
35849
35848
|
var forceDelayChange = use_persist_fn(function () {
|
|
35850
|
-
if (context.
|
|
35849
|
+
if (context.delayChange) context.delayChange();
|
|
35850
|
+
if (context.timer) {
|
|
35851
35851
|
clearTimeout(context.timer);
|
|
35852
|
-
context.delayChange();
|
|
35853
35852
|
context.timer = null;
|
|
35854
35853
|
context.delayChange = null;
|
|
35855
35854
|
}
|
|
@@ -71941,7 +71940,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71941
71940
|
|
|
71942
71941
|
|
|
71943
71942
|
/* harmony default export */ var src_0 = ({
|
|
71944
|
-
version: '3.7.11-
|
|
71943
|
+
version: '3.7.11-fix.1'
|
|
71945
71944
|
});
|
|
71946
71945
|
}();
|
|
71947
71946
|
/******/ return __webpack_exports__;
|