Skip to content

Releases: fergaldoyle/vue-form

4.2.0

22 Jun 23:01
Compare
Choose a tag to compare

Add debounce option

4.1.2

11 Jun 18:35
Compare
Choose a tag to compare
update dist files

4.1.1

09 Jun 22:09
Compare
Choose a tag to compare
bump version

4.1.0

19 May 21:57
Compare
Choose a tag to compare

Added reset listener, which automatically calls _reset. You need to handle resetting of your data model yourself.

e.g:

<vue-form :state="formstate" v-model="formstate" @submit.prevent="onSubmit" @reset="onReset">
methods: {
  onReset: function() {
    // set model back to original (usually stored in a clone) 
    this.model = JSON.parse(JSON.stringify(this.clonedModel));
  }
}

4.0.3

10 May 20:12
Compare
Choose a tag to compare
version bump

4.0.2

29 Apr 22:29
Compare
Choose a tag to compare

Added reset method

<vue-form ref="form" :state="formstate">

resetState: function () {
  this.formstate._reset();
  // or
  this.$refs.form.reset();
}

4.0.0

11 Apr 22:10
Compare
Choose a tag to compare

You can now set different configuration options for different forms (previously it was a global config)

Some API changes to achieve this:

vueForm renamed to VueForm because it is now a constructor.

Adding validators and setting config has changed:

config.classes.input, config.classes.form, config.classes.validate are now:
config.inputClasses, config.formClasses., config.validateClasses

vueForm.addValidator removed. Set validators with config.validators object.

vueForm.config removed. Set config with Vue.use(VueForm, options) or mixins: [new VueForm(options)]

Thanks to @kaleb

3.1.2

03 Apr 21:55
Compare
Choose a tag to compare

detect global for SSR

3.1.1

01 Apr 10:22
Compare
Choose a tag to compare

Added support for scoped slots, e.g:

<field-messages name="fieldName">
  <span>Success</span>
  <template slot="required" scope="state">
	<span v-if="state.$touched || state.$submitted">Name is a required field</span>
  </template>
</field-messages>

3.0.1

20 Mar 00:08
Compare
Choose a tag to compare

Replace form-error and from-errors with field-messages.
Added auto-label option