diff --git a/examples/routers/form.vue b/examples/routers/form.vue index 4ef9bfa6..1c02a75b 100644 --- a/examples/routers/form.vue +++ b/examples/routers/form.vue @@ -169,96 +169,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index e9495829..25c411ec 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -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;