shineout 3.5.5 → 3.5.6-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 CHANGED
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.5'
510
+ version: '3.5.6-beta.2'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.5');
12043
+ /* harmony default export */ var version = ('3.5.6-beta.2');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -39153,6 +39153,13 @@ var result_Result = function Result(props) {
39153
39153
  }
39154
39154
  mounted.current = true;
39155
39155
  }, [focus, placeholder, multiple]);
39156
+
39157
+ // Select多选模式下,且开启了onFilter,自动聚焦
39158
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
39159
+ if (multiple && focus && inputRef !== null && inputRef !== void 0 && inputRef.current) {
39160
+ inputRef.current.focus();
39161
+ }
39162
+ }, [focus, multiple]);
39156
39163
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
39157
39164
  handleResetMore();
39158
39165
  }, [valueProp, data]);
@@ -48702,10 +48709,8 @@ var form_fieldset_produce = utils_immer_produce;
48702
48709
  var FormFieldSet = function FormFieldSet(props) {
48703
48710
  var children = props.children,
48704
48711
  empty = props.empty;
48705
- var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({
48706
- ids: []
48707
- }),
48708
- context = _React$useRef.current;
48712
+ // const { current: context } = React.useRef<{ ids: string[] }>({ ids: [] });
48713
+
48709
48714
  var formFunc = useFormFunc();
48710
48715
  var validateFieldSet = function validateFieldSet() {
48711
48716
  formFunc === null || formFunc === void 0 || formFunc.validateFields(props.name).catch(function (e) {
@@ -48745,19 +48750,17 @@ var FormFieldSet = function FormFieldSet(props) {
48745
48750
  draft.push(val);
48746
48751
  });
48747
48752
  _onChange(newValue);
48748
- context.ids.push(generateUUID());
48753
+ // context.ids.push(util.generateUUID());
48749
48754
  formFunc === null || formFunc === void 0 || formFunc.insertError(name, 0);
48750
48755
  })
48751
48756
  }, 'empty');
48752
48757
  }
48753
48758
  var errorList = (Array.isArray(error) ? error : [error]).filter(Boolean);
48754
- if (context.ids.length !== valueArr.length) {
48755
- context.ids = valueArr.map(function () {
48756
- return generateUUID();
48757
- });
48758
- }
48759
+ // if (context.ids.length !== valueArr.length) {
48760
+ // context.ids = valueArr.map(() => util.generateUUID());
48761
+ // }
48762
+
48759
48763
  return valueArr.map(function (v, i) {
48760
- var _context$ids$i;
48761
48764
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
48762
48765
  value: {
48763
48766
  path: "".concat(ProviderValue.path, "[").concat(i, "]"),
@@ -48782,7 +48785,7 @@ var FormFieldSet = function FormFieldSet(props) {
48782
48785
  draft.splice(i, 0, val);
48783
48786
  });
48784
48787
  _onChange(newValue);
48785
- context.ids.splice(i, 0, generateUUID());
48788
+ // context.ids.splice(i, 0, util.generateUUID());
48786
48789
  formFunc === null || formFunc === void 0 || formFunc.insertError(name, i);
48787
48790
  },
48788
48791
  onAppend: function onAppend(val) {
@@ -48791,7 +48794,7 @@ var FormFieldSet = function FormFieldSet(props) {
48791
48794
  draft.splice(i + 1, 0, val);
48792
48795
  });
48793
48796
  _onChange(newValue);
48794
- context.ids.splice(i + 1, 0, generateUUID());
48797
+ // context.ids.splice(i + 1, 0, util.generateUUID());
48795
48798
  formFunc === null || formFunc === void 0 || formFunc.insertError(name, i + 1);
48796
48799
  },
48797
48800
  onRemove: function onRemove() {
@@ -48800,11 +48803,11 @@ var FormFieldSet = function FormFieldSet(props) {
48800
48803
  draft.splice(i, 1);
48801
48804
  });
48802
48805
  _onChange(newValue);
48803
- context.ids.splice(i, 1);
48806
+ // context.ids.splice(i, 1);
48804
48807
  formFunc === null || formFunc === void 0 || formFunc.spliceError(name, i);
48805
48808
  }
48806
48809
  })
48807
- }, (_context$ids$i = context.ids[i]) !== null && _context$ids$i !== void 0 ? _context$ids$i : i);
48810
+ }, i);
48808
48811
  });
48809
48812
  };
48810
48813
  /* harmony default export */ var form_fieldset = (FormFieldSet);
@@ -67190,7 +67193,7 @@ var upload_interface = __webpack_require__(8821);
67190
67193
 
67191
67194
 
67192
67195
  /* harmony default export */ var src_0 = ({
67193
- version: '3.5.5'
67196
+ version: '3.5.6-beta.2'
67194
67197
  });
67195
67198
  }();
67196
67199
  /******/ return __webpack_exports__;