From 0488204e35072273399fc021c5070fcc93261201 Mon Sep 17 00:00:00 2001 From: haibo tang Date: Mon, 8 Jul 2019 13:47:25 +0800 Subject: [PATCH] fixed the input model event name , from "change" to "changes". --- .gitignore | 3 ++- packages/common/Input/src/main.vue | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2cd5c3208..e23c7a897 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ dist docDist doc/dist test/unit/coverage -package-lock.json \ No newline at end of file +package-lock.json +*.swp \ No newline at end of file diff --git a/packages/common/Input/src/main.vue b/packages/common/Input/src/main.vue index 5c2b782ae..63ffd3920 100644 --- a/packages/common/Input/src/main.vue +++ b/packages/common/Input/src/main.vue @@ -65,7 +65,7 @@ export default { }, model: { prop: 'value', - event: 'change' + event: 'changes' }, props: { type: { @@ -107,7 +107,7 @@ export default { }, methods: { handleInput (e) { - this.$emit('change', e.target.value) + this.$emit('changes', e.target.value) }, handleBlur (e) { this.$emit('blur', e)