谈论vue一下v-on

// scope.row 是element 表格的 当前行 e是事件触发默认的event事件集合
// 使用箭头函数可以两边都获取 如同执行两个函数一样 
// 如果只有一个普通函数变量名 就 只能获取 你传入的 或者 没有形参情况的event
v-on:confirmhandler="(e)=>confirmhandler(e,scope.row)">
this.$emit('confirmhandler',Event)

猜你喜欢

转载自blog.csdn.net/qq_43505774/article/details/115229330