| Yoshie Muranaka | 4b0fc1d | 2020-01-06 07:36:16 -0800 | [diff] [blame] | 1 | const VuelidateMixin = { |
| 2 | methods: { | ||||
| 3 | getValidationState(model) { | ||||
| 4 | const { $dirty, $error } = model; | ||||
| 5 | return $dirty ? !$error : null; | ||||
| Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 6 | }, |
| 7 | }, | ||||
| Yoshie Muranaka | 4b0fc1d | 2020-01-06 07:36:16 -0800 | [diff] [blame] | 8 | }; |
| 9 | |||||
| 10 | export default VuelidateMixin; | ||||