ant design of vue 事件添加自定义参数

参考:https://www.jianshu.com/p/cc37ca159a9c

<a-input class="jlDateInput" v-model="inputVal" @blur="handleBlur"/>

想在handleBlur事件中增加自定义的参数,代码需要改为

<a-input class="jlDateInput" v-model="inputVal" @blur="e=>handleBlur(e,'1')"/>

e是默认的参数,‘1’是自定义的参数

猜你喜欢

转载自blog.csdn.net/weixin_45629194/article/details/111215878