shineout 3.7.5-beta.9 → 3.7.5
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 +22 -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
|
@@ -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'
|
|
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');
|
|
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: {
|
|
@@ -41287,7 +41296,7 @@ var result_Result = function Result(props) {
|
|
|
41287
41296
|
var showInput = allowOnFilter;
|
|
41288
41297
|
var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
41289
41298
|
var styles = props.classes;
|
|
41290
|
-
var rootClass = classnames_default()(styles.resultTextWrapper, compressed && styles.compressedWrapper, multiple && styles.multipleResultWrapper, multiple && compressed && styles.multipleCompressedWrapper);
|
|
41299
|
+
var rootClass = classnames_default()(styles.resultTextWrapper, compressed && styles.compressedWrapper, compressedBound && compressedBound > 0 && styles.compressedBoundWrapper, multiple && styles.multipleResultWrapper, multiple && compressed && styles.multipleCompressedWrapper);
|
|
41291
41300
|
var renderResultContent = function renderResultContent(data, index, nodes) {
|
|
41292
41301
|
if (checkUnMatched(data)) {
|
|
41293
41302
|
var _data = data;
|
|
@@ -41522,16 +41531,19 @@ var result_Result = function Result(props) {
|
|
|
41522
41531
|
return;
|
|
41523
41532
|
}
|
|
41524
41533
|
|
|
41525
|
-
//
|
|
41526
|
-
// 在1000+选项时,重新计算会导致INP超过1000ms
|
|
41534
|
+
// why requestIdleCallback: 当选项数量远超容器承载能力时,延迟昂贵的DOM计算,在1000+选项时,同步的重新计算会导致INP超过1000ms
|
|
41527
41535
|
var hasExistingCompression = context.prevMore > 0;
|
|
41528
41536
|
var hasValidEstimate = context.maxMore > 0;
|
|
41529
41537
|
var exceedsCapacity = valueLength && valueLength > context.maxMore;
|
|
41530
|
-
if (hasExistingCompression && hasValidEstimate && exceedsCapacity) {
|
|
41531
|
-
|
|
41538
|
+
if (hasExistingCompression && hasValidEstimate && exceedsCapacity && typeof requestIdleCallback !== 'undefined') {
|
|
41539
|
+
requestIdleCallback(function () {
|
|
41540
|
+
setMore(-1);
|
|
41541
|
+
setShouldResetMore(true);
|
|
41542
|
+
});
|
|
41543
|
+
} else {
|
|
41544
|
+
setMore(-1);
|
|
41545
|
+
setShouldResetMore(true);
|
|
41532
41546
|
}
|
|
41533
|
-
setMore(-1);
|
|
41534
|
-
setShouldResetMore(true);
|
|
41535
41547
|
};
|
|
41536
41548
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
41537
41549
|
if (!focus && mounted.current) {
|
|
@@ -71647,7 +71659,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71647
71659
|
|
|
71648
71660
|
|
|
71649
71661
|
/* harmony default export */ var src_0 = ({
|
|
71650
|
-
version: '3.7.5
|
|
71662
|
+
version: '3.7.5'
|
|
71651
71663
|
});
|
|
71652
71664
|
}();
|
|
71653
71665
|
/******/ return __webpack_exports__;
|