Skip to content

Releases: fergaldoyle/vue-form

4.5.2

06 Nov 21:49
Compare
Choose a tag to compare

fix case where component has directive along with v-model

4.5.1

23 Oct 18:00
Compare
Choose a tag to compare
update readme

4.5.0

23 Oct 17:55
Compare
Choose a tag to compare

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

21 Sep 21:35
Compare
Choose a tag to compare
make state a required prop

4.4.0

28 Aug 23:00
Compare
Choose a tag to compare
Ignore validators when they are a null or undefined attribute value

4.3.4

18 Jul 09:43
Compare
Choose a tag to compare
change provide to a function

4.3.3

11 Jul 22:45
Compare
Choose a tag to compare

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

04 Jul 19:39
Compare
Choose a tag to compare

Added _submit method to programmatically submit state

this.formstate._submit()

4.3.1

30 Jun 17:00
Compare
Choose a tag to compare
Make sure validation classes are added when element also has class bi…

4.3.0

27 Jun 11:22
Compare
Choose a tag to compare
add focusout and focusin listeners when validating a component