@zat-design/sisyphus-react 3.5.4-beta.6 → 3.5.4-beta.7

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.
@@ -7,8 +7,9 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
7
7
  import { filterInternalFields } from './index';
8
8
  import { handleScrollToError } from '../../ProEditTable/utils/tools';
9
9
  export var useForm = function useForm(originForm, options) {
10
- var _options$scrollToErro = options.scrollToError,
11
- scrollToError = _options$scrollToErro === void 0 ? true : _options$scrollToErro;
10
+ var _ref = options || {},
11
+ _ref$scrollToError = _ref.scrollToError,
12
+ scrollToError = _ref$scrollToError === void 0 ? true : _ref$scrollToError;
12
13
  var _Form$useForm = _Form.useForm(originForm),
13
14
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
14
15
  form = _Form$useForm2[0];
@@ -26,7 +27,7 @@ export var useForm = function useForm(originForm, options) {
26
27
  return getFieldsValue(nameList, filterFunc);
27
28
  };
28
29
  var _validateFields = /*#__PURE__*/function () {
29
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(nameList) {
30
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(nameList) {
30
31
  var _rest$,
31
32
  _len,
32
33
  rest,
@@ -98,7 +99,7 @@ export var useForm = function useForm(originForm, options) {
98
99
  }, _callee, null, [[0, 17]]);
99
100
  }));
100
101
  return function _validateFields(_x) {
101
- return _ref.apply(this, arguments);
102
+ return _ref2.apply(this, arguments);
102
103
  };
103
104
  }();
104
105
  form.getFieldsValue = _getFieldsValue;
@@ -13,8 +13,9 @@ var _antd = require("antd");
13
13
  var _index = require("./index");
14
14
  var _tools = require("../../ProEditTable/utils/tools");
15
15
  var useForm = exports.useForm = function useForm(originForm, options) {
16
- var _options$scrollToErro = options.scrollToError,
17
- scrollToError = _options$scrollToErro === void 0 ? true : _options$scrollToErro;
16
+ var _ref = options || {},
17
+ _ref$scrollToError = _ref.scrollToError,
18
+ scrollToError = _ref$scrollToError === void 0 ? true : _ref$scrollToError;
18
19
  var _Form$useForm = _antd.Form.useForm(originForm),
19
20
  _Form$useForm2 = (0, _slicedToArray2.default)(_Form$useForm, 1),
20
21
  form = _Form$useForm2[0];
@@ -32,7 +33,7 @@ var useForm = exports.useForm = function useForm(originForm, options) {
32
33
  return getFieldsValue(nameList, filterFunc);
33
34
  };
34
35
  var _validateFields = /*#__PURE__*/function () {
35
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(nameList) {
36
+ var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(nameList) {
36
37
  var _rest$,
37
38
  _len,
38
39
  rest,
@@ -104,7 +105,7 @@ var useForm = exports.useForm = function useForm(originForm, options) {
104
105
  }, _callee, null, [[0, 17]]);
105
106
  }));
106
107
  return function _validateFields(_x) {
107
- return _ref.apply(this, arguments);
108
+ return _ref2.apply(this, arguments);
108
109
  };
109
110
  }();
110
111
  form.getFieldsValue = _getFieldsValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.5.4-beta.6",
3
+ "version": "3.5.4-beta.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",