Releases: fergaldoyle/vue-form
Releases · fergaldoyle/vue-form
4.5.2
fix case where component has directive along with v-model
4.5.1
update readme
4.5.0
Custom validator can now watch a data/computed property. true
marks a field valid, false
invalid for the validator key
computed: {
isEmailAvailable () { ... }
}
<validate :custom="{'email-available': isEmailAvailable}">
Added way to manually validate form
this.$refs.form.validate();
// or
this.formstate._validate();
4.4.2
make state a required prop
4.4.0
Ignore validators when they are a null or undefined attribute value
4.3.4
change provide to a function
4.3.3
Use bool
option to allow true
or false
pass required validation.
<validate>
<label>Yes <input type="radio" :value="true" v-model="test" name="radio" required /></label>
<label>No <input type="radio" :value="false" v-model="test" name="radio" required bool /></label>
</validate>
4.3.2
Added _submit
method to programmatically submit state
this.formstate._submit()
4.3.1
Make sure validation classes are added when element also has class bi…
4.3.0
add focusout and focusin listeners when validating a component