| 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; | ||||
| 6 | } | ||||
| 7 | } | ||||
| 8 | }; | ||||
| 9 | |||||
| 10 | export default VuelidateMixin; | ||||