shineout 3.2.6-beta.1 → 3.2.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 +12 -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
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.2.6-
|
|
479
|
+
version: '3.2.6-fix.1'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11960
11960
|
};
|
|
11961
11961
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11962
11962
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11963
|
-
/* harmony default export */ var version = ('3.2.6-
|
|
11963
|
+
/* harmony default export */ var version = ('3.2.6-fix.1');
|
|
11964
11964
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11965
11965
|
|
|
11966
11966
|
|
|
@@ -31446,19 +31446,18 @@ function useInputAble(props) {
|
|
|
31446
31446
|
var render = useRender(syncValue);
|
|
31447
31447
|
var shouldUseState = delay || !control;
|
|
31448
31448
|
var value = shouldUseState ? stateValue : valuePo;
|
|
31449
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
31450
|
-
if (context.timer) {
|
|
31451
|
-
clearTimeout(context.timer);
|
|
31452
|
-
context.timer = null;
|
|
31453
|
-
}
|
|
31449
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
31454
31450
|
if (delay && props.value !== stateValue) {
|
|
31455
31451
|
changeStateValue(props.value);
|
|
31452
|
+
} else if (context.timer) {
|
|
31453
|
+
clearTimeout(context.timer);
|
|
31454
|
+
context.timer = null;
|
|
31456
31455
|
}
|
|
31457
31456
|
}, [props.value, delay]);
|
|
31458
31457
|
var forceDelayChange = use_persist_fn(function () {
|
|
31459
|
-
if (context.
|
|
31458
|
+
if (context.delayChange) context.delayChange();
|
|
31459
|
+
if (context.timer) {
|
|
31460
31460
|
clearTimeout(context.timer);
|
|
31461
|
-
context.delayChange();
|
|
31462
31461
|
context.timer = null;
|
|
31463
31462
|
context.delayChange = null;
|
|
31464
31463
|
}
|
|
@@ -50673,6 +50672,9 @@ var usePagination = function usePagination(props) {
|
|
|
50673
50672
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50674
50673
|
if (pageSizeProp !== pageSize) setPageSize(pageSizeProp);
|
|
50675
50674
|
}, [pageSizeProp]);
|
|
50675
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50676
|
+
if (currentProp !== undefined && currentProp !== current) setCurrent(currentProp);
|
|
50677
|
+
}, [currentProp]);
|
|
50676
50678
|
var handleChange = usePersistFn(function (c, size) {
|
|
50677
50679
|
if (c === current && size === undefined) return;
|
|
50678
50680
|
setCurrent(c);
|
|
@@ -50692,7 +50694,7 @@ var usePagination = function usePagination(props) {
|
|
|
50692
50694
|
return objectSpread2_default()({}, mergedEventHandlers);
|
|
50693
50695
|
};
|
|
50694
50696
|
return {
|
|
50695
|
-
current:
|
|
50697
|
+
current: current,
|
|
50696
50698
|
pageSize: pageSize,
|
|
50697
50699
|
total: total,
|
|
50698
50700
|
onChange: handleChange,
|
|
@@ -63121,7 +63123,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
63121
63123
|
|
|
63122
63124
|
|
|
63123
63125
|
/* harmony default export */ var src_0 = ({
|
|
63124
|
-
version: '3.2.6-
|
|
63126
|
+
version: '3.2.6-fix.1'
|
|
63125
63127
|
});
|
|
63126
63128
|
}();
|
|
63127
63129
|
/******/ return __webpack_exports__;
|