@@ -30,20 +30,20 @@ function formsField<T extends (arg: any) => Form>(generateForm: T, initialValueL
30
30
- Pass ` { abortEarly: false } ` if all validation errors by the yup array schema are required .
31
31
32
32
## Details of ` FormsField ` object
33
- ### ` $forms ` property ( Readonly )
33
+ ### ` $forms ` property < Badge type = " info " text = " Readonly" / >
34
34
- Returns the array of forms generated by ` generateForm ` .
35
35
- For use with ` v-for ` , each generated form is given a unique key named ` $key ` .
36
36
37
- ### ` $error ` property ( Readonly )
37
+ ### ` $error ` property < Badge type = " info " text = " Readonly" / >
38
38
- Returns a result of validating ` $forms ` reactively with the yup schema .
39
39
- If ` $forms ` is invalid , ` yup.ValidationError ` is returned .
40
40
- If ` $forms ` is valid , ` undefined ` is returned .
41
41
42
- ### ` $errorMessages ` property ( Readonly )
42
+ ### ` $errorMessages ` property < Badge type = " info " text = " Readonly" / >
43
43
- Returns an error messages array (` string[] ` ) reactively as well as ` $error ` property .
44
44
- If ` abortEarly ` is false , it can return more than one element .
45
45
46
- ### ` $label ` property ( Readonly )
46
+ ### ` $label ` property < Badge type = " info " text = " Readonly" / >
47
47
- Returns the label of the yup schema .
48
48
- For example , if you pass ` yup.array().label("Questions") ` , you will obtain ` "Questions" ` .
49
49
- If the ` schema ` you passed is a function , the function is evaluated once when the object is created.
0 commit comments