js vue elementui 表单自带input,change,blur,foucs事件新增自定义参数

<el-input v-model="xxx" @input="((val,name)=>{handleInput(val,'name')})" @blur="((e,name)=>{fixedTwo(e,'name')})"></el-input>

handleInput(value,name){
   console.log("value",value)
   console.log("name",name)
}

fixedTwo(e,name){
   console.log("e",e.target.value)
   console.log("name",name)
}

 

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页