Skip to content

Commit

Permalink
search: emit on-change after input
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Apr 5, 2017
1 parent 8786187 commit baa1cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/search/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ export default {
},
currentValue (val) {
if (!this.isCancel) {
this.$emit('on-change', val)
this.$emit('input', val)
this.$emit('on-change', val)
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/components/search/metas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ events:
en: when input gets focus
zh-CN: 输入框获取到焦点时触发
changes:
next:
en:
- '[enhance] emit on-change after input'
zh-CN:
- '[enhance] 在 input 后触发 on-change 事件(否则此时 v-model 绑定的值和参数不一致)'
v2.1.1-rc.13:
en:
- '[feature] Add slot:right'
Expand Down

0 comments on commit baa1cac

Please sign in to comment.