@sheinx/base 3.5.7-beta.1 → 3.5.7-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.
@@ -1 +1 @@
1
- {"version":3,"file":"form-fieldset.d.ts","sourceRoot":"","sources":["form-fieldset.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,QAAA,MAAM,YAAY,yCA+FjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"form-fieldset.d.ts","sourceRoot":"","sources":["form-fieldset.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,QAAA,MAAM,YAAY,yCA6FjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -22,7 +22,9 @@ var FormFieldSet = function FormFieldSet(props) {
22
22
 
23
23
  var formFunc = (0, _hooks.useFormFunc)();
24
24
  var validateFieldSet = function validateFieldSet() {
25
- formFunc === null || formFunc === void 0 || formFunc.validateFields(props.name).catch(function (e) {
25
+ formFunc === null || formFunc === void 0 || formFunc.validateFields(props.name, {
26
+ ignoreChildren: true
27
+ }).catch(function (e) {
26
28
  return e;
27
29
  });
28
30
  };
@@ -86,9 +88,9 @@ var FormFieldSet = function FormFieldSet(props) {
86
88
  draft[i] = val;
87
89
  });
88
90
  _onChange(newValue);
89
- if (options === undefined || options !== null && options !== void 0 && options.validate) {
90
- formFunc === null || formFunc === void 0 || formFunc.validateFieldset("".concat(name, "[").concat(i, "]"));
91
- }
91
+ formFunc === null || formFunc === void 0 || formFunc.validateFieldset("".concat(name, "[").concat(i, "]"), {
92
+ ignoreChildren: (options === null || options === void 0 ? void 0 : options.validate) === false
93
+ });
92
94
  },
93
95
  onInsert: function onInsert(val) {
94
96
  var oldValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
@@ -1 +1 @@
1
- {"version":3,"file":"form-fieldset.d.ts","sourceRoot":"","sources":["form-fieldset.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,QAAA,MAAM,YAAY,yCA+FjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"form-fieldset.d.ts","sourceRoot":"","sources":["form-fieldset.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,QAAA,MAAM,YAAY,yCA6FjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -15,7 +15,9 @@ var FormFieldSet = function FormFieldSet(props) {
15
15
 
16
16
  var formFunc = useFormFunc();
17
17
  var validateFieldSet = function validateFieldSet() {
18
- formFunc === null || formFunc === void 0 || formFunc.validateFields(props.name).catch(function (e) {
18
+ formFunc === null || formFunc === void 0 || formFunc.validateFields(props.name, {
19
+ ignoreChildren: true
20
+ }).catch(function (e) {
19
21
  return e;
20
22
  });
21
23
  };
@@ -79,9 +81,9 @@ var FormFieldSet = function FormFieldSet(props) {
79
81
  draft[i] = val;
80
82
  });
81
83
  _onChange(newValue);
82
- if (options === undefined || options !== null && options !== void 0 && options.validate) {
83
- formFunc === null || formFunc === void 0 || formFunc.validateFieldset("".concat(name, "[").concat(i, "]"));
84
- }
84
+ formFunc === null || formFunc === void 0 || formFunc.validateFieldset("".concat(name, "[").concat(i, "]"), {
85
+ ignoreChildren: (options === null || options === void 0 ? void 0 : options.validate) === false
86
+ });
85
87
  },
86
88
  onInsert: function onInsert(val) {
87
89
  var oldValue = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.5.7-beta.1",
3
+ "version": "3.5.7-beta.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.5.7-beta.1",
13
+ "@sheinx/hooks": "3.5.7-beta.2",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"