何麒

Results 4 comments of 何麒

确实非常需要

针对自定义的事件该怎么写呢?比如chang,input...... ![image](https://user-images.githubusercontent.com/6813909/118944547-3ec8c280-b987-11eb-888b-896101f17306.png) 我试了onInput,onChange,好像都不行,采用v-input会报错 ![image](https://user-images.githubusercontent.com/6813909/118944787-76376f00-b987-11eb-8210-5117dca244e1.png)

> 不知道你是怎么写的, onInput,onChange 应该是可以的, 需要 `ctx.emit('change');` 解决了,引用Element Plus时,typescript会提示onInput方法不存在,通过// @ts-ignore可以临时解决这个问题 ![image](https://user-images.githubusercontent.com/6813909/118953727-abe05600-b98f-11eb-9fd5-c9a5c6c68ca8.png)