shineout 3.7.5-beta.9 → 3.7.5-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 +28 -17
- 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.5-
|
|
525
|
+
version: '3.7.5-fix.1'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -7389,7 +7389,7 @@ var Alert = function Alert(props) {
|
|
|
7389
7389
|
if (dismiss === HIDE) {
|
|
7390
7390
|
return null;
|
|
7391
7391
|
}
|
|
7392
|
-
if (
|
|
7392
|
+
if (title) {
|
|
7393
7393
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
7394
7394
|
className: rootClass
|
|
7395
7395
|
}, getRootProps()), {}, {
|
|
@@ -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.5-
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.5-fix.1');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -17545,6 +17545,9 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17545
17545
|
},
|
|
17546
17546
|
compressedWrapper: {
|
|
17547
17547
|
width: 0,
|
|
17548
|
+
overflow: 'hidden'
|
|
17549
|
+
},
|
|
17550
|
+
compressedBoundWrapper: {
|
|
17548
17551
|
overflow: 'auto'
|
|
17549
17552
|
},
|
|
17550
17553
|
controlMouse: {
|
|
@@ -23389,6 +23392,9 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
23389
23392
|
},
|
|
23390
23393
|
compressedWrapper: {
|
|
23391
23394
|
width: 0,
|
|
23395
|
+
overflow: 'hidden'
|
|
23396
|
+
},
|
|
23397
|
+
compressedBoundWrapper: {
|
|
23392
23398
|
overflow: 'auto'
|
|
23393
23399
|
},
|
|
23394
23400
|
controlMouse: {
|
|
@@ -28923,6 +28929,9 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
28923
28929
|
},
|
|
28924
28930
|
compressedWrapper: {
|
|
28925
28931
|
width: 0,
|
|
28932
|
+
overflow: 'hidden'
|
|
28933
|
+
},
|
|
28934
|
+
compressedBoundWrapper: {
|
|
28926
28935
|
overflow: 'auto'
|
|
28927
28936
|
},
|
|
28928
28937
|
controlMouse: {
|
|
@@ -35538,19 +35547,18 @@ function useInputAble(props) {
|
|
|
35538
35547
|
var render = useRender(syncValue);
|
|
35539
35548
|
var shouldUseState = delay || !control;
|
|
35540
35549
|
var value = shouldUseState ? stateValue : valuePo;
|
|
35541
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
35542
|
-
if (context.timer) {
|
|
35543
|
-
clearTimeout(context.timer);
|
|
35544
|
-
context.timer = null;
|
|
35545
|
-
}
|
|
35550
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
35546
35551
|
if (delay && control && props.value !== stateValue) {
|
|
35547
35552
|
changeStateValue(props.value);
|
|
35553
|
+
} else if (context.timer) {
|
|
35554
|
+
clearTimeout(context.timer);
|
|
35555
|
+
context.timer = null;
|
|
35548
35556
|
}
|
|
35549
35557
|
}, [props.value, delay, control]);
|
|
35550
35558
|
var forceDelayChange = use_persist_fn(function () {
|
|
35551
|
-
if (context.
|
|
35559
|
+
if (context.delayChange) context.delayChange();
|
|
35560
|
+
if (context.timer) {
|
|
35552
35561
|
clearTimeout(context.timer);
|
|
35553
|
-
context.delayChange();
|
|
35554
35562
|
context.timer = null;
|
|
35555
35563
|
context.delayChange = null;
|
|
35556
35564
|
}
|
|
@@ -41287,7 +41295,7 @@ var result_Result = function Result(props) {
|
|
|
41287
41295
|
var showInput = allowOnFilter;
|
|
41288
41296
|
var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
41289
41297
|
var styles = props.classes;
|
|
41290
|
-
var rootClass = classnames_default()(styles.resultTextWrapper, compressed && styles.compressedWrapper, multiple && styles.multipleResultWrapper, multiple && compressed && styles.multipleCompressedWrapper);
|
|
41298
|
+
var rootClass = classnames_default()(styles.resultTextWrapper, compressed && styles.compressedWrapper, compressedBound && compressedBound > 0 && styles.compressedBoundWrapper, multiple && styles.multipleResultWrapper, multiple && compressed && styles.multipleCompressedWrapper);
|
|
41291
41299
|
var renderResultContent = function renderResultContent(data, index, nodes) {
|
|
41292
41300
|
if (checkUnMatched(data)) {
|
|
41293
41301
|
var _data = data;
|
|
@@ -41522,16 +41530,19 @@ var result_Result = function Result(props) {
|
|
|
41522
41530
|
return;
|
|
41523
41531
|
}
|
|
41524
41532
|
|
|
41525
|
-
//
|
|
41526
|
-
// 在1000+选项时,重新计算会导致INP超过1000ms
|
|
41533
|
+
// why requestIdleCallback: 当选项数量远超容器承载能力时,延迟昂贵的DOM计算,在1000+选项时,同步的重新计算会导致INP超过1000ms
|
|
41527
41534
|
var hasExistingCompression = context.prevMore > 0;
|
|
41528
41535
|
var hasValidEstimate = context.maxMore > 0;
|
|
41529
41536
|
var exceedsCapacity = valueLength && valueLength > context.maxMore;
|
|
41530
|
-
if (hasExistingCompression && hasValidEstimate && exceedsCapacity) {
|
|
41531
|
-
|
|
41537
|
+
if (hasExistingCompression && hasValidEstimate && exceedsCapacity && typeof requestIdleCallback !== 'undefined') {
|
|
41538
|
+
requestIdleCallback(function () {
|
|
41539
|
+
setMore(-1);
|
|
41540
|
+
setShouldResetMore(true);
|
|
41541
|
+
});
|
|
41542
|
+
} else {
|
|
41543
|
+
setMore(-1);
|
|
41544
|
+
setShouldResetMore(true);
|
|
41532
41545
|
}
|
|
41533
|
-
setMore(-1);
|
|
41534
|
-
setShouldResetMore(true);
|
|
41535
41546
|
};
|
|
41536
41547
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
41537
41548
|
if (!focus && mounted.current) {
|
|
@@ -71647,7 +71658,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71647
71658
|
|
|
71648
71659
|
|
|
71649
71660
|
/* harmony default export */ var src_0 = ({
|
|
71650
|
-
version: '3.7.5-
|
|
71661
|
+
version: '3.7.5-fix.1'
|
|
71651
71662
|
});
|
|
71652
71663
|
}();
|
|
71653
71664
|
/******/ return __webpack_exports__;
|