shineout 3.8.5-beta.1 → 3.8.5-beta.3
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 +24 -25
- 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.8.5-beta.
|
|
525
|
+
version: '3.8.5-beta.3'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12386
12386
|
};
|
|
12387
12387
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12388
12388
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12389
|
-
/* harmony default export */ var version = ('3.8.5-beta.
|
|
12389
|
+
/* harmony default export */ var version = ('3.8.5-beta.3');
|
|
12390
12390
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12391
|
|
|
12392
12392
|
|
|
@@ -33462,6 +33462,13 @@ var Tooltip = function Tooltip(props) {
|
|
|
33462
33462
|
popsitionProps = _props$position === void 0 ? 'auto' : _props$position,
|
|
33463
33463
|
_props$popupGap = props.popupGap,
|
|
33464
33464
|
popupGap = _props$popupGap === void 0 ? 0 : _props$popupGap;
|
|
33465
|
+
|
|
33466
|
+
// Early validation checks BEFORE any hooks
|
|
33467
|
+
if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
|
|
33468
|
+
tooltip_devUseWarning.error('Tooltip children expect a single ReactElement.');
|
|
33469
|
+
return null;
|
|
33470
|
+
}
|
|
33471
|
+
if (!tip) return children;
|
|
33465
33472
|
var tooltipClasses = jssStyle === null || jssStyle === void 0 || (_jssStyle$tooltip = jssStyle.tooltip) === null || _jssStyle$tooltip === void 0 ? void 0 : _jssStyle$tooltip.call(jssStyle);
|
|
33466
33473
|
var config = useConfig();
|
|
33467
33474
|
var persistent = persistentProp !== null && persistentProp !== void 0 ? persistentProp : (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent;
|
|
@@ -33520,22 +33527,6 @@ var Tooltip = function Tooltip(props) {
|
|
|
33520
33527
|
unbindEvents();
|
|
33521
33528
|
};
|
|
33522
33529
|
}, [persistent]);
|
|
33523
|
-
if (! /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children)) {
|
|
33524
|
-
tooltip_devUseWarning.error('Tooltip children expect a single ReactElement.');
|
|
33525
|
-
return null;
|
|
33526
|
-
}
|
|
33527
|
-
if (!tip) return children;
|
|
33528
|
-
var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
33529
|
-
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
|
|
33530
|
-
style: {
|
|
33531
|
-
cursor: 'not-allowed'
|
|
33532
|
-
},
|
|
33533
|
-
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
33534
|
-
style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
|
|
33535
|
-
pointerEvents: 'none'
|
|
33536
|
-
})
|
|
33537
|
-
})
|
|
33538
|
-
}) : children;
|
|
33539
33530
|
var innerProps = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
33540
33531
|
if (persistent) {
|
|
33541
33532
|
return trigger === 'hover' ? objectSpread2_default()(objectSpread2_default()({}, events), {}, {
|
|
@@ -33547,6 +33538,17 @@ var Tooltip = function Tooltip(props) {
|
|
|
33547
33538
|
}
|
|
33548
33539
|
return events;
|
|
33549
33540
|
}, [persistent, events, trigger]);
|
|
33541
|
+
var inner = disabledChild ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
33542
|
+
className: tooltipClasses === null || tooltipClasses === void 0 ? void 0 : tooltipClasses.target,
|
|
33543
|
+
style: {
|
|
33544
|
+
cursor: 'not-allowed'
|
|
33545
|
+
},
|
|
33546
|
+
children: /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
|
|
33547
|
+
style: objectSpread2_default()(objectSpread2_default()({}, childrenProps.style), {}, {
|
|
33548
|
+
pointerEvents: 'none'
|
|
33549
|
+
})
|
|
33550
|
+
})
|
|
33551
|
+
}) : children;
|
|
33550
33552
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
33551
33553
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("noscript", {
|
|
33552
33554
|
ref: function ref(el) {
|
|
@@ -42449,7 +42451,7 @@ var result_Result = function Result(props) {
|
|
|
42449
42451
|
props.setInputText(textContent);
|
|
42450
42452
|
}
|
|
42451
42453
|
}
|
|
42452
|
-
if (!reFocus) {
|
|
42454
|
+
if (!reFocus && props.focusSelected) {
|
|
42453
42455
|
setTimeout(function () {
|
|
42454
42456
|
var _inputRef$current;
|
|
42455
42457
|
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
@@ -42457,7 +42459,7 @@ var result_Result = function Result(props) {
|
|
|
42457
42459
|
}
|
|
42458
42460
|
}
|
|
42459
42461
|
mounted.current = true;
|
|
42460
|
-
}, [focus, placeholder, multiple]);
|
|
42462
|
+
}, [focus, placeholder, multiple, props.focusSelected]);
|
|
42461
42463
|
|
|
42462
42464
|
// Select多选模式下,且开启了onFilter,自动聚焦
|
|
42463
42465
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
@@ -42579,8 +42581,6 @@ var Cascader = function Cascader(props0) {
|
|
|
42579
42581
|
} : _props$renderItem,
|
|
42580
42582
|
renderResultProp = props.renderResult,
|
|
42581
42583
|
placeholder = props.placeholder,
|
|
42582
|
-
_props$focusSelected = props.focusSelected,
|
|
42583
|
-
focusSelected = _props$focusSelected === void 0 ? true : _props$focusSelected,
|
|
42584
42584
|
renderCompressed = props.renderCompressed,
|
|
42585
42585
|
compressedClassName = props.compressedClassName,
|
|
42586
42586
|
resultClassName = props.resultClassName,
|
|
@@ -42956,7 +42956,6 @@ var Cascader = function Cascader(props0) {
|
|
|
42956
42956
|
renderUnmatched: renderUnmatched,
|
|
42957
42957
|
renderResultContent: hideTag && !multiple ? renderResultContent : undefined,
|
|
42958
42958
|
allowOnFilter: showInput,
|
|
42959
|
-
focusSelected: focusSelected,
|
|
42960
42959
|
inputText: inputText,
|
|
42961
42960
|
filterText: filterText,
|
|
42962
42961
|
onFilter: handleFilter,
|
|
@@ -57737,7 +57736,7 @@ function Select(props0) {
|
|
|
57737
57736
|
if (!multiple && !shouldFocus) {
|
|
57738
57737
|
closePop();
|
|
57739
57738
|
}
|
|
57740
|
-
if (multiple && !shouldFocus) {
|
|
57739
|
+
if (multiple && !shouldFocus && focusSelected) {
|
|
57741
57740
|
var _inputRef$current;
|
|
57742
57741
|
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
57743
57742
|
}
|
|
@@ -69308,7 +69307,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
69308
69307
|
var item = datum.getDataById(id);
|
|
69309
69308
|
handleChange(item, id);
|
|
69310
69309
|
var shouldFocus = showInput && reFocus;
|
|
69311
|
-
if (multiple && !shouldFocus) {
|
|
69310
|
+
if (multiple && !shouldFocus && focusSelected) {
|
|
69312
69311
|
var _inputRef$current3;
|
|
69313
69312
|
inputRef === null || inputRef === void 0 || (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.select();
|
|
69314
69313
|
}
|
|
@@ -73287,7 +73286,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73287
73286
|
|
|
73288
73287
|
|
|
73289
73288
|
/* harmony default export */ var src_0 = ({
|
|
73290
|
-
version: '3.8.5-beta.
|
|
73289
|
+
version: '3.8.5-beta.3'
|
|
73291
73290
|
});
|
|
73292
73291
|
}();
|
|
73293
73292
|
/******/ return __webpack_exports__;
|