shineout 3.8.5-beta.2 → 3.8.5-beta.4
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 +10 -9
- 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.4'
|
|
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.4');
|
|
12390
12390
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12391
|
|
|
12392
12392
|
|
|
@@ -27638,6 +27638,10 @@ var tabsStyle = {
|
|
|
27638
27638
|
},
|
|
27639
27639
|
'&[data-soui-shape="card"] $prev, &[data-soui-shape="card"] $next': {
|
|
27640
27640
|
background: '#FFFFFF',
|
|
27641
|
+
alignSelf: 'stretch',
|
|
27642
|
+
display: 'flex',
|
|
27643
|
+
alignItems: 'center',
|
|
27644
|
+
justifyContent: 'center',
|
|
27641
27645
|
border: "1px solid ".concat(src.tabsBorderColor),
|
|
27642
27646
|
'&[data-soui-state="disabled"]': {
|
|
27643
27647
|
background: src.tabsBackgroundColor
|
|
@@ -42451,7 +42455,7 @@ var result_Result = function Result(props) {
|
|
|
42451
42455
|
props.setInputText(textContent);
|
|
42452
42456
|
}
|
|
42453
42457
|
}
|
|
42454
|
-
if (!reFocus) {
|
|
42458
|
+
if (!reFocus && props.focusSelected) {
|
|
42455
42459
|
setTimeout(function () {
|
|
42456
42460
|
var _inputRef$current;
|
|
42457
42461
|
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
@@ -42459,7 +42463,7 @@ var result_Result = function Result(props) {
|
|
|
42459
42463
|
}
|
|
42460
42464
|
}
|
|
42461
42465
|
mounted.current = true;
|
|
42462
|
-
}, [focus, placeholder, multiple]);
|
|
42466
|
+
}, [focus, placeholder, multiple, props.focusSelected]);
|
|
42463
42467
|
|
|
42464
42468
|
// Select多选模式下,且开启了onFilter,自动聚焦
|
|
42465
42469
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
@@ -42581,8 +42585,6 @@ var Cascader = function Cascader(props0) {
|
|
|
42581
42585
|
} : _props$renderItem,
|
|
42582
42586
|
renderResultProp = props.renderResult,
|
|
42583
42587
|
placeholder = props.placeholder,
|
|
42584
|
-
_props$focusSelected = props.focusSelected,
|
|
42585
|
-
focusSelected = _props$focusSelected === void 0 ? true : _props$focusSelected,
|
|
42586
42588
|
renderCompressed = props.renderCompressed,
|
|
42587
42589
|
compressedClassName = props.compressedClassName,
|
|
42588
42590
|
resultClassName = props.resultClassName,
|
|
@@ -42958,7 +42960,6 @@ var Cascader = function Cascader(props0) {
|
|
|
42958
42960
|
renderUnmatched: renderUnmatched,
|
|
42959
42961
|
renderResultContent: hideTag && !multiple ? renderResultContent : undefined,
|
|
42960
42962
|
allowOnFilter: showInput,
|
|
42961
|
-
focusSelected: focusSelected,
|
|
42962
42963
|
inputText: inputText,
|
|
42963
42964
|
filterText: filterText,
|
|
42964
42965
|
onFilter: handleFilter,
|
|
@@ -57739,7 +57740,7 @@ function Select(props0) {
|
|
|
57739
57740
|
if (!multiple && !shouldFocus) {
|
|
57740
57741
|
closePop();
|
|
57741
57742
|
}
|
|
57742
|
-
if (multiple && !shouldFocus) {
|
|
57743
|
+
if (multiple && !shouldFocus && focusSelected) {
|
|
57743
57744
|
var _inputRef$current;
|
|
57744
57745
|
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
57745
57746
|
}
|
|
@@ -69310,7 +69311,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
69310
69311
|
var item = datum.getDataById(id);
|
|
69311
69312
|
handleChange(item, id);
|
|
69312
69313
|
var shouldFocus = showInput && reFocus;
|
|
69313
|
-
if (multiple && !shouldFocus) {
|
|
69314
|
+
if (multiple && !shouldFocus && focusSelected) {
|
|
69314
69315
|
var _inputRef$current3;
|
|
69315
69316
|
inputRef === null || inputRef === void 0 || (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.select();
|
|
69316
69317
|
}
|
|
@@ -73289,7 +73290,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73289
73290
|
|
|
73290
73291
|
|
|
73291
73292
|
/* harmony default export */ var src_0 = ({
|
|
73292
|
-
version: '3.8.5-beta.
|
|
73293
|
+
version: '3.8.5-beta.4'
|
|
73293
73294
|
});
|
|
73294
73295
|
}();
|
|
73295
73296
|
/******/ return __webpack_exports__;
|