shineout 3.1.30 → 3.1.31-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 +11 -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.1.
|
|
479
|
+
version: '3.1.31-fix.1'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11952,7 +11952,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11952
11952
|
};
|
|
11953
11953
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11954
11954
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11955
|
-
/* harmony default export */ var version = ('3.1.
|
|
11955
|
+
/* harmony default export */ var version = ('3.1.31-fix.1');
|
|
11956
11956
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11957
11957
|
|
|
11958
11958
|
|
|
@@ -14840,6 +14840,7 @@ var alertStyle = {
|
|
|
14840
14840
|
},
|
|
14841
14841
|
content: {
|
|
14842
14842
|
flex: '1 1 0',
|
|
14843
|
+
minWidth: 0,
|
|
14843
14844
|
wordBreak: 'break-all'
|
|
14844
14845
|
},
|
|
14845
14846
|
pending: {
|
|
@@ -30949,19 +30950,18 @@ function useInputAble(props) {
|
|
|
30949
30950
|
var render = useRender(syncValue);
|
|
30950
30951
|
var shouldUseState = delay || !control;
|
|
30951
30952
|
var value = shouldUseState ? stateValue : valuePo;
|
|
30952
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
30953
|
-
if (context.timer) {
|
|
30954
|
-
clearTimeout(context.timer);
|
|
30955
|
-
context.timer = null;
|
|
30956
|
-
}
|
|
30953
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
30957
30954
|
if (delay && props.value !== stateValue) {
|
|
30958
30955
|
changeStateValue(props.value);
|
|
30956
|
+
} else if (context.timer) {
|
|
30957
|
+
clearTimeout(context.timer);
|
|
30958
|
+
context.timer = null;
|
|
30959
30959
|
}
|
|
30960
30960
|
}, [props.value, delay]);
|
|
30961
30961
|
var forceDelayChange = use_persist_fn(function () {
|
|
30962
|
-
if (context.
|
|
30962
|
+
if (context.delayChange) context.delayChange();
|
|
30963
|
+
if (context.timer) {
|
|
30963
30964
|
clearTimeout(context.timer);
|
|
30964
|
-
context.delayChange();
|
|
30965
30965
|
context.timer = null;
|
|
30966
30966
|
context.delayChange = null;
|
|
30967
30967
|
}
|
|
@@ -46815,7 +46815,8 @@ var Scroll = function Scroll(props) {
|
|
|
46815
46815
|
var placeStyle = {
|
|
46816
46816
|
paddingTop: height > 0 && scrollHeight > 0 ? Math.max(0, Math.floor(scrollHeight - height)) : 0,
|
|
46817
46817
|
width: scrollWidth,
|
|
46818
|
-
overflow: 'hidden'
|
|
46818
|
+
overflow: 'hidden',
|
|
46819
|
+
lineHeight: 0
|
|
46819
46820
|
};
|
|
46820
46821
|
var handleScroll = usePersistFn(function (e) {
|
|
46821
46822
|
var target = e.currentTarget;
|
|
@@ -62433,7 +62434,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
62433
62434
|
|
|
62434
62435
|
|
|
62435
62436
|
/* harmony default export */ var src_0 = ({
|
|
62436
|
-
version: '3.1.
|
|
62437
|
+
version: '3.1.31-fix.1'
|
|
62437
62438
|
});
|
|
62438
62439
|
}();
|
|
62439
62440
|
/******/ return __webpack_exports__;
|