fixed #494
watch trigger after form emit, so the value of date not change when validate, change to async
This commit is contained in:
parent
a9e5919790
commit
fc0c4c7815
2 changed files with 121 additions and 79 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue