shineout 3.5.2-beta.1 → 3.5.2-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 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.1'
503
+ version: '3.5.2-beta.3'
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.1');
12005
+ /* harmony default export */ var version = ('3.5.2-beta.3');
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
  // 删除数据
@@ -47547,8 +47547,10 @@ var useForm = function useForm(props) {
47547
47547
  context.removeArr.delete(n);
47548
47548
  if (df !== undefined && deepGet(context.value, n) === undefined) {
47549
47549
  if (!context.mounted) context.defaultValues[n] = df;
47550
- onChange(function (v) {
47551
- deepSet(v, n, df, deepSetOptions);
47550
+ setTimeout(function () {
47551
+ onChange(function (v) {
47552
+ deepSet(v, n, df, deepSetOptions);
47553
+ });
47552
47554
  });
47553
47555
  }
47554
47556
  update(n);
@@ -52466,6 +52468,12 @@ function Select(props0) {
52466
52468
  getTargetProps = _usePopup.getTargetProps,
52467
52469
  PopupProvider = _usePopup.Provider,
52468
52470
  popupProviderValue = _usePopup.providerValue;
52471
+ var preventDefault = function preventDefault(e) {
52472
+ if (!createdData) return;
52473
+ if (focused && e.target !== inputRef.current) {
52474
+ e.preventDefault();
52475
+ }
52476
+ };
52469
52477
  var handleSelectChange = usePersistFn(function (value, dataItem, checked) {
52470
52478
  if (createdData || props.emptyAfterSelect) {
52471
52479
  onFilter === null || onFilter === void 0 || onFilter('');
@@ -52936,6 +52944,7 @@ function Select(props0) {
52936
52944
  onFocus: handleFocus,
52937
52945
  onMouseEnter: onMouseEnter,
52938
52946
  onMouseLeave: onMouseLeave,
52947
+ onMouseDown: preventDefault,
52939
52948
  children: [tipNode, renderResult(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
52940
52949
  adjust: adjust,
52941
52950
  focus: open,
@@ -66421,7 +66430,7 @@ var upload_interface = __webpack_require__(8821);
66421
66430
 
66422
66431
 
66423
66432
  /* harmony default export */ var src_0 = ({
66424
- version: '3.5.2-beta.1'
66433
+ version: '3.5.2-beta.3'
66425
66434
  });
66426
66435
  }();
66427
66436
  /******/ return __webpack_exports__;