shineout 3.4.6-beta.2 → 3.4.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 +13 -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
|
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
492
492
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
493
493
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
494
494
|
var _default = exports.default = {
|
|
495
|
-
version: '3.4.6-
|
|
495
|
+
version: '3.4.6-fix.1'
|
|
496
496
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11984,7 +11984,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11984
11984
|
};
|
|
11985
11985
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11986
11986
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11987
|
-
/* harmony default export */ var version = ('3.4.6-
|
|
11987
|
+
/* harmony default export */ var version = ('3.4.6-fix.1');
|
|
11988
11988
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11989
11989
|
|
|
11990
11990
|
|
|
@@ -32565,19 +32565,18 @@ function useInputAble(props) {
|
|
|
32565
32565
|
var render = useRender(syncValue);
|
|
32566
32566
|
var shouldUseState = delay || !control;
|
|
32567
32567
|
var value = shouldUseState ? stateValue : valuePo;
|
|
32568
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
32569
|
-
if (context.timer) {
|
|
32570
|
-
clearTimeout(context.timer);
|
|
32571
|
-
context.timer = null;
|
|
32572
|
-
}
|
|
32568
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
32573
32569
|
if (delay && control && props.value !== stateValue) {
|
|
32574
32570
|
changeStateValue(props.value);
|
|
32571
|
+
} else if (context.timer) {
|
|
32572
|
+
clearTimeout(context.timer);
|
|
32573
|
+
context.timer = null;
|
|
32575
32574
|
}
|
|
32576
32575
|
}, [props.value, delay, control]);
|
|
32577
32576
|
var forceDelayChange = use_persist_fn(function () {
|
|
32578
|
-
if (context.
|
|
32577
|
+
if (context.delayChange) context.delayChange();
|
|
32578
|
+
if (context.timer) {
|
|
32579
32579
|
clearTimeout(context.timer);
|
|
32580
|
-
context.delayChange();
|
|
32581
32580
|
context.timer = null;
|
|
32582
32581
|
context.delayChange = null;
|
|
32583
32582
|
}
|
|
@@ -48805,6 +48804,11 @@ var useNumberFormat = function useNumberFormat(props) {
|
|
|
48805
48804
|
setInternalInputValue(getStringValue(val));
|
|
48806
48805
|
if (typeof val === 'string') {
|
|
48807
48806
|
var num = parseFloat(val);
|
|
48807
|
+
if (val === '') {
|
|
48808
|
+
// 如果允许空值,则返回 null,否则返回 undefined
|
|
48809
|
+
onChange === null || onChange === void 0 || onChange(allowNull ? null : undefined);
|
|
48810
|
+
return;
|
|
48811
|
+
}
|
|
48808
48812
|
if (isNaN(num)) return;
|
|
48809
48813
|
onChange === null || onChange === void 0 || onChange(num);
|
|
48810
48814
|
} else {
|
|
@@ -65417,7 +65421,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
65417
65421
|
|
|
65418
65422
|
|
|
65419
65423
|
/* harmony default export */ var src_0 = ({
|
|
65420
|
-
version: '3.4.6-
|
|
65424
|
+
version: '3.4.6-fix.1'
|
|
65421
65425
|
});
|
|
65422
65426
|
}();
|
|
65423
65427
|
/******/ return __webpack_exports__;
|