From 8bca10707b9f9497e34688f5ac02440c46b2387b Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Fri, 13 Jan 2017 15:45:08 +0800 Subject: [PATCH] update Input on-form-change trigger timing #198 --- src/components/input/input.vue | 2 +- test/routers/form.vue | 512 +++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2 files changed, 28 insertions(+), 486 deletions(-) diff --git a/src/components/input/input.vue b/src/components/input/input.vue index 1831565..53f4d9b 100644 --- a/src/components/input/input.vue +++ b/src/components/input/input.vue @@ -150,7 +150,6 @@ }, handleChange (event) { this.$emit('on-change', event); - this.$dispatch('on-form-change', this.value); }, resizeTextarea () { const autosize = this.autosize; @@ -169,6 +168,7 @@ this.$nextTick(() => { this.resizeTextarea(); }); + this.$dispatch('on-form-change', this.value); } }, ready () { diff --git a/test/routers/form.vue b/test/routers/form.vue index aeeb8d2..fa72a35 100644 --- a/test/routers/form.vue +++ b/test/routers/form.vue @@ -1,496 +1,41 @@ \ No newline at end of file + } + -- libgit2 0.21.4