shineout 3.7.3-beta.7 → 3.7.3-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 +25 -11
- 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.3-
|
|
525
|
+
version: '3.7.3-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.3-
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.3-fix.1');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -30982,6 +30982,14 @@ function shallowEqual(objA, objB) {
|
|
|
30982
30982
|
}
|
|
30983
30983
|
return true;
|
|
30984
30984
|
}
|
|
30985
|
+
function shallowEqualExceptFalsely(objA, objB) {
|
|
30986
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
30987
|
+
var falselys = [false, 0, '', null, undefined, NaN];
|
|
30988
|
+
if (falselys.includes(objA) && falselys.includes(objB)) {
|
|
30989
|
+
return true;
|
|
30990
|
+
}
|
|
30991
|
+
return shallowEqual(objA, objB, options);
|
|
30992
|
+
}
|
|
30985
30993
|
/* harmony default export */ var shallow_equal = (shallowEqual);
|
|
30986
30994
|
;// CONCATENATED MODULE: ../hooks/src/utils/dom/document.ts
|
|
30987
30995
|
var cachedZoom = 0;
|
|
@@ -35517,19 +35525,18 @@ function useInputAble(props) {
|
|
|
35517
35525
|
var render = useRender(syncValue);
|
|
35518
35526
|
var shouldUseState = delay || !control;
|
|
35519
35527
|
var value = shouldUseState ? stateValue : valuePo;
|
|
35520
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
35521
|
-
if (context.timer) {
|
|
35522
|
-
clearTimeout(context.timer);
|
|
35523
|
-
context.timer = null;
|
|
35524
|
-
}
|
|
35528
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
35525
35529
|
if (delay && control && props.value !== stateValue) {
|
|
35526
35530
|
changeStateValue(props.value);
|
|
35531
|
+
} else if (context.timer) {
|
|
35532
|
+
clearTimeout(context.timer);
|
|
35533
|
+
context.timer = null;
|
|
35527
35534
|
}
|
|
35528
35535
|
}, [props.value, delay, control]);
|
|
35529
35536
|
var forceDelayChange = use_persist_fn(function () {
|
|
35530
|
-
if (context.
|
|
35537
|
+
if (context.delayChange) context.delayChange();
|
|
35538
|
+
if (context.timer) {
|
|
35531
35539
|
clearTimeout(context.timer);
|
|
35532
|
-
context.delayChange();
|
|
35533
35540
|
context.timer = null;
|
|
35534
35541
|
context.delayChange = null;
|
|
35535
35542
|
}
|
|
@@ -45264,8 +45271,15 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
|
|
|
45264
45271
|
}
|
|
45265
45272
|
var formatValue = getFormatValueArr(dateArr);
|
|
45266
45273
|
var v = range ? formatValue : formatValue[0];
|
|
45267
|
-
if (
|
|
45268
|
-
|
|
45274
|
+
if (Array.isArray(value) && value.length && Array.isArray(v) && v.length) {
|
|
45275
|
+
// 针对 range 的情况,['2025-01-01',''] 和 ['2025-01-01',undefined] 无法通过 shallowEqual 出来,这边需要放行
|
|
45276
|
+
if (!shallowEqualExceptFalsely(v[0], value[0]) || !shallowEqualExceptFalsely(v[1], value[1])) {
|
|
45277
|
+
onChange === null || onChange === void 0 || onChange(v);
|
|
45278
|
+
}
|
|
45279
|
+
} else {
|
|
45280
|
+
if (!shallow_equal(v, value)) {
|
|
45281
|
+
onChange === null || onChange === void 0 || onChange(v);
|
|
45282
|
+
}
|
|
45269
45283
|
}
|
|
45270
45284
|
};
|
|
45271
45285
|
var getDateArr = function getDateArr() {
|
|
@@ -71600,7 +71614,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71600
71614
|
|
|
71601
71615
|
|
|
71602
71616
|
/* harmony default export */ var src_0 = ({
|
|
71603
|
-
version: '3.7.3-
|
|
71617
|
+
version: '3.7.3-fix.1'
|
|
71604
71618
|
});
|
|
71605
71619
|
}();
|
|
71606
71620
|
/******/ return __webpack_exports__;
|