Open ZhiLinLiang opened 4 years ago
Translation of this issue:
0.1.0
win7 / Chrome
2.6.11
https://codepen.io/8023/pen/PoZpyae?editable=true%3Dhttps%3A%2F%2Felement.eleme.cn%2F
You cannot use v-on to listen for camelCase events when using in DOM templates
'on confirm' should be used instead of 'on confirm'.
V-on cannot listen to onconfirm event when using in DOM template
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Element UI version
2.13.2
OS/Browsers version
win7 / Chrome
Vue version
2.6.11
Reproduction Link
https://codepen.io/8023/pen/PoZpyae?editable=true%3Dhttps%3A%2F%2Felement.eleme.cn%2F
Steps to reproduce
使用in-DOM模板时不能使用v-on侦听camelCase事件
What is Expected?
应该使用“ on-confirm”而不是“ onConfirm”。 methods:{ confirm:function(){ this.visible=!1, this.$emit("on-confirm") }, cancel:function(){ this.visible=!1, this.$emit("on-cancel") } }
What is actually happening?
使用in-DOM模板时使用v-on无法侦听到onConfirm事件