...
Code Block | ||
---|---|---|
| ||
<FormText :validations="v => [v.required(), customValidator(), customValidate]"> <FormText :validate="customValidate" /> <script> export default { methods: { customValidator() { return { validate: val => val =!= 'no', message: () => 'value must not be "no"', }; }, customValidate(val) { if (val == 'false') return 'value must not be "false"'; } } }; </script> |
...