shineout 3.5.2-beta.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 +10 -3
- 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.2-beta.
|
|
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.2-beta.
|
|
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
|
// 删除数据
|
|
@@ -52466,6 +52466,12 @@ function Select(props0) {
|
|
|
52466
52466
|
getTargetProps = _usePopup.getTargetProps,
|
|
52467
52467
|
PopupProvider = _usePopup.Provider,
|
|
52468
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
|
+
};
|
|
52469
52475
|
var handleSelectChange = usePersistFn(function (value, dataItem, checked) {
|
|
52470
52476
|
if (createdData || props.emptyAfterSelect) {
|
|
52471
52477
|
onFilter === null || onFilter === void 0 || onFilter('');
|
|
@@ -52936,6 +52942,7 @@ function Select(props0) {
|
|
|
52936
52942
|
onFocus: handleFocus,
|
|
52937
52943
|
onMouseEnter: onMouseEnter,
|
|
52938
52944
|
onMouseLeave: onMouseLeave,
|
|
52945
|
+
onMouseDown: preventDefault,
|
|
52939
52946
|
children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
52940
52947
|
adjust: adjust,
|
|
52941
52948
|
focus: open,
|
|
@@ -66421,7 +66428,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
66421
66428
|
|
|
66422
66429
|
|
|
66423
66430
|
/* harmony default export */ var src_0 = ({
|
|
66424
|
-
version: '3.5.2-beta.
|
|
66431
|
+
version: '3.5.2-beta.2'
|
|
66425
66432
|
});
|
|
66426
66433
|
}();
|
|
66427
66434
|
/******/ return __webpack_exports__;
|