Vue 1.0.28 | vee-validate 2.2.15
{{{ "{{ errors.first('syntax_email') }}" }}}
{{{ "{{ errors.first('syntax_alpha') }}" }}}
{{{ "{{ errors.first('modifiers_immediate') }}" }}}
htmlverify(name) { this.$validator.validate(name); }
{{{ "{{ errors.first('modifiers_disable') }}" }}}verify
{{{ "{{ errors.first('form_checkbox') }}" }}}
{{{ "{{ errors.first('form_radio') }}" }}}
{{{ "{{ errors.first('vv_as') }}" }}}
{{{ "{{ errors.first('vv_delay') }}" }}}
htmlvalidateForm(scope) { this.$validator.validateAll(scope).then((result) => { if (result) { alert('Form Submitted!'); } }); }
htmlVeeValidate.Validator.extend('unit', { getMessage: (field, [unit]) => `${field} must be in units of ${unit}`, validate: (value, [unit]) => parseInt(value) % parseInt(unit) === 0 });
{{{ "{{ errors.first('custom_unit') }}" }}}
Vue1 and Vue2 conflict solution
use v-validate-ref replace ref
{{{ "{{ errors.first('pwd') }}" }}}{{{ "{{ errors.first('pwd_confirm') }}" }}}
{{{ "{{ errors.first('unbind_email') }}" }}}
{{{ "{{ errors.first('dynamic_rule') }}" }}}
{{{ "{{ errors.first('custom_component') }}" }}}
{{{ "{{ errors.first(`name-${randId}`) }}" }}}