shineout 3.8.5-beta.2 → 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 +6 -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.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
|
|
|
@@ -42451,7 +42451,7 @@ var result_Result = function Result(props) {
|
|
|
42451
42451
|
props.setInputText(textContent);
|
|
42452
42452
|
}
|
|
42453
42453
|
}
|
|
42454
|
-
if (!reFocus) {
|
|
42454
|
+
if (!reFocus && props.focusSelected) {
|
|
42455
42455
|
setTimeout(function () {
|
|
42456
42456
|
var _inputRef$current;
|
|
42457
42457
|
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
@@ -42459,7 +42459,7 @@ var result_Result = function Result(props) {
|
|
|
42459
42459
|
}
|
|
42460
42460
|
}
|
|
42461
42461
|
mounted.current = true;
|
|
42462
|
-
}, [focus, placeholder, multiple]);
|
|
42462
|
+
}, [focus, placeholder, multiple, props.focusSelected]);
|
|
42463
42463
|
|
|
42464
42464
|
// Select多选模式下,且开启了onFilter,自动聚焦
|
|
42465
42465
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
@@ -42581,8 +42581,6 @@ var Cascader = function Cascader(props0) {
|
|
|
42581
42581
|
} : _props$renderItem,
|
|
42582
42582
|
renderResultProp = props.renderResult,
|
|
42583
42583
|
placeholder = props.placeholder,
|
|
42584
|
-
_props$focusSelected = props.focusSelected,
|
|
42585
|
-
focusSelected = _props$focusSelected === void 0 ? true : _props$focusSelected,
|
|
42586
42584
|
renderCompressed = props.renderCompressed,
|
|
42587
42585
|
compressedClassName = props.compressedClassName,
|
|
42588
42586
|
resultClassName = props.resultClassName,
|
|
@@ -42958,7 +42956,6 @@ var Cascader = function Cascader(props0) {
|
|
|
42958
42956
|
renderUnmatched: renderUnmatched,
|
|
42959
42957
|
renderResultContent: hideTag && !multiple ? renderResultContent : undefined,
|
|
42960
42958
|
allowOnFilter: showInput,
|
|
42961
|
-
focusSelected: focusSelected,
|
|
42962
42959
|
inputText: inputText,
|
|
42963
42960
|
filterText: filterText,
|
|
42964
42961
|
onFilter: handleFilter,
|
|
@@ -57739,7 +57736,7 @@ function Select(props0) {
|
|
|
57739
57736
|
if (!multiple && !shouldFocus) {
|
|
57740
57737
|
closePop();
|
|
57741
57738
|
}
|
|
57742
|
-
if (multiple && !shouldFocus) {
|
|
57739
|
+
if (multiple && !shouldFocus && focusSelected) {
|
|
57743
57740
|
var _inputRef$current;
|
|
57744
57741
|
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
57745
57742
|
}
|
|
@@ -69310,7 +69307,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
69310
69307
|
var item = datum.getDataById(id);
|
|
69311
69308
|
handleChange(item, id);
|
|
69312
69309
|
var shouldFocus = showInput && reFocus;
|
|
69313
|
-
if (multiple && !shouldFocus) {
|
|
69310
|
+
if (multiple && !shouldFocus && focusSelected) {
|
|
69314
69311
|
var _inputRef$current3;
|
|
69315
69312
|
inputRef === null || inputRef === void 0 || (_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.select();
|
|
69316
69313
|
}
|
|
@@ -73289,7 +73286,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73289
73286
|
|
|
73290
73287
|
|
|
73291
73288
|
/* harmony default export */ var src_0 = ({
|
|
73292
|
-
version: '3.8.5-beta.
|
|
73289
|
+
version: '3.8.5-beta.3'
|
|
73293
73290
|
});
|
|
73294
73291
|
}();
|
|
73295
73292
|
/******/ return __webpack_exports__;
|