File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
apps/docs/guide/composables Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,18 @@ Field schema object, as returned by the props
30
30
31
31
### ` validate ` <Badge type =" info " text =" Function " />
32
32
> Validates the field, existing fields typically use this in an ` onBlur() `
33
+ - Arguments:
34
+ - ` currentModelValue: any ` - the current value of the field.
33
35
- Returns: ` Promise<string[]> ` - an array of error messages, or empty array if no errors have been found.
34
36
``` javascript
35
- validate ().then ((validationErrors ) => {
37
+ validate (currentModelValue . value ).then ((validationErrors ) => {
36
38
// ...
37
39
})
38
40
```
41
+
42
+ ### ` errors ` <Badge type =" info " text =" string[] " />
43
+ > An array of errors that have been found when validating the current value against all validators
44
+
45
+ ::: warning
46
+ If you want your component to work properly with validation, you'll have to expose this value.
47
+ :::
You can’t perform that action at this time.
0 commit comments