shineout 3.9.4-beta.2 → 3.9.4-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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.4-beta.2'
525
+ version: '3.9.4-beta.3'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12401,7 +12401,7 @@ var handleStyle = function handleStyle(style) {
12401
12401
  };
12402
12402
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12403
12403
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12404
- /* harmony default export */ var version = ('3.9.4-beta.2');
12404
+ /* harmony default export */ var version = ('3.9.4-beta.3');
12405
12405
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12406
12406
 
12407
12407
 
@@ -44171,8 +44171,7 @@ FormItemContext.displayName = 'FormItemContext';
44171
44171
 
44172
44172
 
44173
44173
  var FieldsetContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext)({
44174
- path: '',
44175
- validateFieldSet: function validateFieldSet() {}
44174
+ path: ''
44176
44175
  });
44177
44176
  FieldsetContext.displayName = 'FieldsetContext';
44178
44177
  function extendName() {
@@ -44189,8 +44188,7 @@ function extendName() {
44189
44188
  }
44190
44189
  var useFieldSetConsumer = function useFieldSetConsumer(props) {
44191
44190
  var _React$useContext = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useContext(FieldsetContext),
44192
- path = _React$useContext.path,
44193
- validateFieldSet = _React$useContext.validateFieldSet;
44191
+ path = _React$useContext.path;
44194
44192
  var bind = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useMemo(function () {
44195
44193
  var _bind = path ? (props.bind || []).concat(path) : props.bind;
44196
44194
  // 只有当路径中包含超过1个索引时才需要去掉最后一个索引
@@ -44204,8 +44202,7 @@ var useFieldSetConsumer = function useFieldSetConsumer(props) {
44204
44202
  }, [path, props.name]);
44205
44203
  return objectSpread2_default()(objectSpread2_default()({}, props), {}, {
44206
44204
  name: name,
44207
- bind: bind,
44208
- validateFieldSet: validateFieldSet
44205
+ bind: bind
44209
44206
  });
44210
44207
  };
44211
44208
  /* harmony default export */ var fieldset_context = (FieldsetContext);
@@ -44615,8 +44612,7 @@ function useFormControl(props) {
44615
44612
  bind: props.bind
44616
44613
  }),
44617
44614
  name = _useFieldSetConsumer.name,
44618
- bind = _useFieldSetConsumer.bind,
44619
- validateFieldSet = _useFieldSetConsumer.validateFieldSet;
44615
+ bind = _useFieldSetConsumer.bind;
44620
44616
  var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(undefined),
44621
44617
  _React$useState2 = slicedToArray_default()(_React$useState, 2),
44622
44618
  errorState = _React$useState2[0],
@@ -44783,7 +44779,6 @@ function useFormControl(props) {
44783
44779
  other[_key - 1] = arguments[_key];
44784
44780
  }
44785
44781
  if (onChangePo) onChangePo.apply(void 0, [v].concat(other));
44786
- if (validateFieldSet) validateFieldSet();
44787
44782
  });
44788
44783
  var initError = use_persist_fn(function () {
44789
44784
  var errors = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getErrors();
@@ -52067,8 +52062,7 @@ EmptyComp.displayName = 'ShineoutEmpty';
52067
52062
 
52068
52063
 
52069
52064
  var topPath = {
52070
- path: '',
52071
- validateFieldSet: function validateFieldSet() {}
52065
+ path: ''
52072
52066
  };
52073
52067
  var Provider = function Provider(props) {
52074
52068
  var children = props.children,
@@ -53696,8 +53690,7 @@ var useFormFieldSet = function useFormFieldSet(props) {
53696
53690
  devUseWarning.error('[FieldSet] should render in Form');
53697
53691
  }
53698
53692
  var ProviderValue = {
53699
- path: name,
53700
- validateFieldSet: function validateFieldSet() {}
53693
+ path: name
53701
53694
  };
53702
53695
  return {
53703
53696
  Provider: fieldset_context.Provider,
@@ -53714,21 +53707,11 @@ var useFormFieldSet = function useFormFieldSet(props) {
53714
53707
 
53715
53708
 
53716
53709
 
53717
-
53718
53710
  var form_fieldset_produce = utils_immer_produce;
53719
53711
  var FormFieldSet = function FormFieldSet(props) {
53720
53712
  var children = props.children,
53721
53713
  empty = props.empty;
53722
- // const { current: context } = React.useRef<{ ids: string[] }>({ ids: [] });
53723
-
53724
53714
  var formFunc = useFormFunc();
53725
- var validateFieldSet = function validateFieldSet() {
53726
- formFunc === null || formFunc === void 0 || formFunc.validateFields(props.name, {
53727
- ignoreChildren: true
53728
- }).catch(function (e) {
53729
- return e;
53730
- });
53731
- };
53732
53715
  var getValidateProps = usePersistFn(function () {
53733
53716
  return props;
53734
53717
  });
@@ -53747,9 +53730,7 @@ var FormFieldSet = function FormFieldSet(props) {
53747
53730
  name = _useFormFieldSet.name;
53748
53731
  if (typeof children !== 'function') {
53749
53732
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
53750
- value: objectSpread2_default()(objectSpread2_default()({}, ProviderValue), {}, {
53751
- validateFieldSet: validateFieldSet
53752
- }),
53733
+ value: ProviderValue,
53753
53734
  children: children
53754
53735
  });
53755
53736
  }
@@ -53817,8 +53798,7 @@ var FormFieldSet = function FormFieldSet(props) {
53817
53798
  });
53818
53799
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
53819
53800
  value: {
53820
- path: "".concat(ProviderValue.path, "[").concat(i, "]"),
53821
- validateFieldSet: validateFieldSet
53801
+ path: "".concat(ProviderValue.path, "[").concat(i, "]")
53822
53802
  },
53823
53803
  children: children({
53824
53804
  list: valueArr,
@@ -74752,7 +74732,7 @@ var upload_interface = __webpack_require__(8821);
74752
74732
 
74753
74733
 
74754
74734
  /* harmony default export */ var src_0 = ({
74755
- version: '3.9.4-beta.2'
74735
+ version: '3.9.4-beta.3'
74756
74736
  });
74757
74737
  }();
74758
74738
  /******/ return __webpack_exports__;