shineout 3.5.1 → 3.5.2-beta.2
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 +17 -7
- 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
|
@@ -500,5 +500,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
500
500
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
501
501
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
502
502
|
var _default = exports.default = {
|
|
503
|
-
version: '3.5.
|
|
503
|
+
version: '3.5.2-beta.2'
|
|
504
504
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12002,7 +12002,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12002
12002
|
};
|
|
12003
12003
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12004
12004
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12005
|
-
/* harmony default export */ var version = ('3.5.
|
|
12005
|
+
/* harmony default export */ var version = ('3.5.2-beta.2');
|
|
12006
12006
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12007
12007
|
|
|
12008
12008
|
|
|
@@ -40545,7 +40545,7 @@ var useListSelectMultiple = function useListSelectMultiple(props) {
|
|
|
40545
40545
|
}
|
|
40546
40546
|
});
|
|
40547
40547
|
var removeAll = use_persist_fn(function () {
|
|
40548
|
-
props.onChange([], undefined, false);
|
|
40548
|
+
props.onChange(props.separator ? '' : [], undefined, false);
|
|
40549
40549
|
});
|
|
40550
40550
|
|
|
40551
40551
|
// 删除数据
|
|
@@ -52424,6 +52424,10 @@ function Select(props0) {
|
|
|
52424
52424
|
onCreate = _useFilter.onCreate,
|
|
52425
52425
|
onClearCreatedData = _useFilter.onClearCreatedData,
|
|
52426
52426
|
rawData = _useFilter.rawData;
|
|
52427
|
+
var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
52428
|
+
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
52429
|
+
absoluteListUpdateKey = _useState8[0],
|
|
52430
|
+
setAbsoluteListUpdateKey = _useState8[1];
|
|
52427
52431
|
var onCollapse = usePersistFn(function (collapse) {
|
|
52428
52432
|
onCollapseProp === null || onCollapseProp === void 0 || onCollapseProp(collapse);
|
|
52429
52433
|
onClearCreatedData();
|
|
@@ -52462,6 +52466,12 @@ function Select(props0) {
|
|
|
52462
52466
|
getTargetProps = _usePopup.getTargetProps,
|
|
52463
52467
|
PopupProvider = _usePopup.Provider,
|
|
52464
52468
|
popupProviderValue = _usePopup.providerValue;
|
|
52469
|
+
var preventDefault = function preventDefault(e) {
|
|
52470
|
+
if (!createdData) return;
|
|
52471
|
+
if (focused && e.target !== inputRef.current) {
|
|
52472
|
+
e.preventDefault();
|
|
52473
|
+
}
|
|
52474
|
+
};
|
|
52465
52475
|
var handleSelectChange = usePersistFn(function (value, dataItem, checked) {
|
|
52466
52476
|
if (createdData || props.emptyAfterSelect) {
|
|
52467
52477
|
onFilter === null || onFilter === void 0 || onFilter('');
|
|
@@ -52475,6 +52485,8 @@ function Select(props0) {
|
|
|
52475
52485
|
inputRef === null || inputRef === void 0 || (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
52476
52486
|
}
|
|
52477
52487
|
onChange === null || onChange === void 0 || onChange(value, dataItem, checked);
|
|
52488
|
+
if (props.absolute === undefined) return;
|
|
52489
|
+
setAbsoluteListUpdateKey(value);
|
|
52478
52490
|
});
|
|
52479
52491
|
var _useSelect = use_select({
|
|
52480
52492
|
value: valueProp,
|
|
@@ -52835,10 +52847,7 @@ function Select(props0) {
|
|
|
52835
52847
|
}
|
|
52836
52848
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(select_list, objectSpread2_default()({}, listProps));
|
|
52837
52849
|
};
|
|
52838
|
-
|
|
52839
|
-
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
52840
|
-
absoluteListUpdateKey = _useState8[0],
|
|
52841
|
-
setAbsoluteListUpdateKey = _useState8[1];
|
|
52850
|
+
|
|
52842
52851
|
// 当树形数据展开时,需要更新 AbsoluteList 的位置
|
|
52843
52852
|
var onExpandWrap = usePersistFn(function (value) {
|
|
52844
52853
|
onExpand === null || onExpand === void 0 || onExpand(value);
|
|
@@ -52933,6 +52942,7 @@ function Select(props0) {
|
|
|
52933
52942
|
onFocus: handleFocus,
|
|
52934
52943
|
onMouseEnter: onMouseEnter,
|
|
52935
52944
|
onMouseLeave: onMouseLeave,
|
|
52945
|
+
onMouseDown: preventDefault,
|
|
52936
52946
|
children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
52937
52947
|
adjust: adjust,
|
|
52938
52948
|
focus: open,
|
|
@@ -66418,7 +66428,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
66418
66428
|
|
|
66419
66429
|
|
|
66420
66430
|
/* harmony default export */ var src_0 = ({
|
|
66421
|
-
version: '3.5.
|
|
66431
|
+
version: '3.5.2-beta.2'
|
|
66422
66432
|
});
|
|
66423
66433
|
}();
|
|
66424
66434
|
/******/ return __webpack_exports__;
|