diff --git a/components/form/__tests__/__snapshots__/demo.test.js.snap b/components/form/__tests__/__snapshots__/demo.test.js.snap index 26b367e47..294c4c806 100644 --- a/components/form/__tests__/__snapshots__/demo.test.js.snap +++ b/components/form/__tests__/__snapshots__/demo.test.js.snap @@ -569,6 +569,20 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = ` +
+
+
+
+
+
+
+
+
+
+ +
+
+
@@ -691,27 +705,24 @@ exports[`renders ./components/form/demo/validate-static.vue correctly 1`] = `
-
+
-
+
Please select the correct date
-
-
-
- - -
-
-
-
-
- -
+
+ - + +
+
+
+
-
+
+
diff --git a/components/form/demo/validate-other.vue b/components/form/demo/validate-other.vue index f3d67588d..a473c33dc 100644 --- a/components/form/demo/validate-other.vue +++ b/components/form/demo/validate-other.vue @@ -96,6 +96,21 @@ Demostration for validataion configuration for form controls which are not show + + + + A + B + C + D + E + + + + - - - - - - - - - - - - - - - - + + + + + - + + + + boolean | | isFieldValidating | Check if the specified field is being validated. | Function(name) | | resetFields | Reset the specified fields' value(to `initialValue`) and status. If you don't specify a parameter, all the fields will be reset. | Function(\[names: string\[]]) | -| setFields | Set value and error state of fields | ({
  \[fieldName\]: {value: any, errors: \[Error\] }
}) => void | +| setFields | Set value and error state of fields. | ({
  \[fieldName\]: {value: any, errors: \[Error\] }
}) => void | | setFieldsValue | Set the value of a field. | Function({ [fieldName]: value } | | validateFields | Validate the specified fields and get theirs values and errors. If you don't specify the parameter of fieldNames, you will validate all fields. | (
  \[fieldNames: string\[]],
  \[options: object\],
  callback(errors, values)
) => void | | validateFieldsAndScroll | This function is similar to `validateFields`, but after validation, if the target field is not in visible area of form, form will be automatically scrolled to the target field area. | same as `validateFields` |