shineout 3.5.7-beta.6 → 3.5.7-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 +19 -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
|
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
507
507
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
508
508
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
509
509
|
var _default = exports.default = {
|
|
510
|
-
version: '3.5.7-
|
|
510
|
+
version: '3.5.7-fix.1'
|
|
511
511
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12040
12040
|
};
|
|
12041
12041
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12042
12042
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12043
|
-
/* harmony default export */ var version = ('3.5.7-
|
|
12043
|
+
/* harmony default export */ var version = ('3.5.7-fix.1');
|
|
12044
12044
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12045
12045
|
|
|
12046
12046
|
|
|
@@ -33559,19 +33559,18 @@ function useInputAble(props) {
|
|
|
33559
33559
|
var render = useRender(syncValue);
|
|
33560
33560
|
var shouldUseState = delay || !control;
|
|
33561
33561
|
var value = shouldUseState ? stateValue : valuePo;
|
|
33562
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
33563
|
-
if (context.timer) {
|
|
33564
|
-
clearTimeout(context.timer);
|
|
33565
|
-
context.timer = null;
|
|
33566
|
-
}
|
|
33562
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
33567
33563
|
if (delay && control && props.value !== stateValue) {
|
|
33568
33564
|
changeStateValue(props.value);
|
|
33565
|
+
} else if (context.timer) {
|
|
33566
|
+
clearTimeout(context.timer);
|
|
33567
|
+
context.timer = null;
|
|
33569
33568
|
}
|
|
33570
33569
|
}, [props.value, delay, control]);
|
|
33571
33570
|
var forceDelayChange = use_persist_fn(function () {
|
|
33572
|
-
if (context.
|
|
33571
|
+
if (context.delayChange) context.delayChange();
|
|
33572
|
+
if (context.timer) {
|
|
33573
33573
|
clearTimeout(context.timer);
|
|
33574
|
-
context.delayChange();
|
|
33575
33574
|
context.timer = null;
|
|
33576
33575
|
context.delayChange = null;
|
|
33577
33576
|
}
|
|
@@ -33923,7 +33922,7 @@ var useInputFormat = function useInputFormat(props) {
|
|
|
33923
33922
|
autoFix = props.autoFix,
|
|
33924
33923
|
coin = props.coin,
|
|
33925
33924
|
cancelBlurChange = props.cancelBlurChange;
|
|
33926
|
-
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(
|
|
33925
|
+
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(coin),
|
|
33927
33926
|
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
33928
33927
|
showCoin = _React$useState2[0],
|
|
33929
33928
|
setShowCoin = _React$useState2[1];
|
|
@@ -33950,6 +33949,13 @@ var useInputFormat = function useInputFormat(props) {
|
|
|
33950
33949
|
var noNeg = numType === 'non-negative' || numType === 'positive';
|
|
33951
33950
|
var regExp = new RegExp("^(".concat(noNeg ? '' : '-', ")?(\\d").concat(regLength(integerLimit), ")(").concat(digits !== 0 ? "\\.\\d".concat(regLength(digits)) : '', ")?.*$"), 'g');
|
|
33952
33951
|
value = value.replace(regExp, '$1$2$3');
|
|
33952
|
+
|
|
33953
|
+
// 修正小数位数
|
|
33954
|
+
var _value = v.split('.');
|
|
33955
|
+
var __value = value.split('.');
|
|
33956
|
+
if (_value[1] !== undefined && __value[1] === undefined) {
|
|
33957
|
+
value = "".concat(value, ".").concat(_value[1]);
|
|
33958
|
+
}
|
|
33953
33959
|
}
|
|
33954
33960
|
onChange(value);
|
|
33955
33961
|
});
|
|
@@ -34333,6 +34339,9 @@ var getCompleteFieldKeys = function getCompleteFieldKeys(fields, allFields) {
|
|
|
34333
34339
|
var completeFields = [];
|
|
34334
34340
|
fieldsArray.forEach(function (field) {
|
|
34335
34341
|
var na = "".concat(field, "[");
|
|
34342
|
+
if (field.endsWith(']')) {
|
|
34343
|
+
na = field;
|
|
34344
|
+
}
|
|
34336
34345
|
var no = "".concat(field, ".");
|
|
34337
34346
|
completeFields.push(field);
|
|
34338
34347
|
var childFields = allFields.filter(function (f) {
|
|
@@ -67403,7 +67412,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
67403
67412
|
|
|
67404
67413
|
|
|
67405
67414
|
/* harmony default export */ var src_0 = ({
|
|
67406
|
-
version: '3.5.7-
|
|
67415
|
+
version: '3.5.7-fix.1'
|
|
67407
67416
|
});
|
|
67408
67417
|
}();
|
|
67409
67418
|
/******/ return __webpack_exports__;
|