shineout 3.5.5 → 3.5.6-beta.1

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.1'
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.1');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -48702,10 +48702,8 @@ var form_fieldset_produce = utils_immer_produce;
48702
48702
  var FormFieldSet = function FormFieldSet(props) {
48703
48703
  var children = props.children,
48704
48704
  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;
48705
+ // const { current: context } = React.useRef<{ ids: string[] }>({ ids: [] });
48706
+
48709
48707
  var formFunc = useFormFunc();
48710
48708
  var validateFieldSet = function validateFieldSet() {
48711
48709
  formFunc === null || formFunc === void 0 || formFunc.validateFields(props.name).catch(function (e) {
@@ -48745,19 +48743,17 @@ var FormFieldSet = function FormFieldSet(props) {
48745
48743
  draft.push(val);
48746
48744
  });
48747
48745
  _onChange(newValue);
48748
- context.ids.push(generateUUID());
48746
+ // context.ids.push(util.generateUUID());
48749
48747
  formFunc === null || formFunc === void 0 || formFunc.insertError(name, 0);
48750
48748
  })
48751
48749
  }, 'empty');
48752
48750
  }
48753
48751
  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
- }
48752
+ // if (context.ids.length !== valueArr.length) {
48753
+ // context.ids = valueArr.map(() => util.generateUUID());
48754
+ // }
48755
+
48759
48756
  return valueArr.map(function (v, i) {
48760
- var _context$ids$i;
48761
48757
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
48762
48758
  value: {
48763
48759
  path: "".concat(ProviderValue.path, "[").concat(i, "]"),
@@ -48782,7 +48778,7 @@ var FormFieldSet = function FormFieldSet(props) {
48782
48778
  draft.splice(i, 0, val);
48783
48779
  });
48784
48780
  _onChange(newValue);
48785
- context.ids.splice(i, 0, generateUUID());
48781
+ // context.ids.splice(i, 0, util.generateUUID());
48786
48782
  formFunc === null || formFunc === void 0 || formFunc.insertError(name, i);
48787
48783
  },
48788
48784
  onAppend: function onAppend(val) {
@@ -48791,7 +48787,7 @@ var FormFieldSet = function FormFieldSet(props) {
48791
48787
  draft.splice(i + 1, 0, val);
48792
48788
  });
48793
48789
  _onChange(newValue);
48794
- context.ids.splice(i + 1, 0, generateUUID());
48790
+ // context.ids.splice(i + 1, 0, util.generateUUID());
48795
48791
  formFunc === null || formFunc === void 0 || formFunc.insertError(name, i + 1);
48796
48792
  },
48797
48793
  onRemove: function onRemove() {
@@ -48800,11 +48796,11 @@ var FormFieldSet = function FormFieldSet(props) {
48800
48796
  draft.splice(i, 1);
48801
48797
  });
48802
48798
  _onChange(newValue);
48803
- context.ids.splice(i, 1);
48799
+ // context.ids.splice(i, 1);
48804
48800
  formFunc === null || formFunc === void 0 || formFunc.spliceError(name, i);
48805
48801
  }
48806
48802
  })
48807
- }, (_context$ids$i = context.ids[i]) !== null && _context$ids$i !== void 0 ? _context$ids$i : i);
48803
+ }, i);
48808
48804
  });
48809
48805
  };
48810
48806
  /* harmony default export */ var form_fieldset = (FormFieldSet);
@@ -67190,7 +67186,7 @@ var upload_interface = __webpack_require__(8821);
67190
67186
 
67191
67187
 
67192
67188
  /* harmony default export */ var src_0 = ({
67193
- version: '3.5.5'
67189
+ version: '3.5.6-beta.1'
67194
67190
  });
67195
67191
  }();
67196
67192
  /******/ return __webpack_exports__;