@zat-design/sisyphus-react 3.13.14-beta.2 → 3.13.14-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.
@@ -51,8 +51,9 @@ var FormFooter = function FormFooter(props) {
51
51
  // 使用自定义验证逻辑
52
52
  form.validateFields().then(function () {
53
53
  onOk();
54
- }).catch(function () {
54
+ }).catch(function (error) {
55
55
  // 验证失败,不执行 onOk
56
+ console.log('校验失败', error);
56
57
  });
57
58
  } else {
58
59
  onOk();
@@ -58,8 +58,9 @@ var FormFooter = function FormFooter(props) {
58
58
  // 使用自定义验证逻辑
59
59
  form.validateFields().then(function () {
60
60
  onOk();
61
- }).catch(function () {
61
+ }).catch(function (error) {
62
62
  // 验证失败,不执行 onOk
63
+ console.log('校验失败', error);
63
64
  });
64
65
  } else {
65
66
  onOk();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.14-beta.2",
3
+ "version": "3.13.14-beta.3",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",