watch trigger after form emit, so the value of date not change when
validate, change to async
This commit is contained in:
梁灏 2017-03-27 10:30:45 +08:00
parent a9e5919790
commit fc0c4c7815
2 changed files with 121 additions and 79 deletions

View file

@ -423,7 +423,9 @@
const newDate = this.formattingDate(date);
this.$emit('on-change', newDate);
this.dispatch('FormItem', 'on-form-change', newDate);
this.$nextTick(() => {
this.dispatch('FormItem', 'on-form-change', newDate);
});
},
formattingDate (date) {
const type = this.type;