element [Bug Report] Avatar组件error事件不触发

km0tfn4u  于 5个月前  发布在  其他
关注(0)|答案(5)|浏览(48)

Element UI version

2.13.1

OS/Browsers version

mac

Vue version

3.0.0-beta.2

https://jsfiddle.net/mmx38qxw/

Steps to reproduce

error事件在源码中是通过props传入,this.errorFun( ) 执行,官网示例上却是通过@error传入,官网示例与源码实现不一致。

建议:源码 const errorFlag = error ? error() : undefined; 改为 const errorFlag = error ? this.$emit('error') : undefined;

What is Expected?

error按预期执行

What is actually happening?

error不执行

yzxexxkh

yzxexxkh1#

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.

6ss1mwsb

6ss1mwsb2#

我用的2.15.3,avatar当图片加载失败,也没有触发error事件

enxuqcxy

enxuqcxy3#

@cp0725 把error事件改成属性就行了
@error="" 改成 :error=""

6rqinv9w

6rqinv9w4#

这个问题没人修复吗

lyfkaqu1

lyfkaqu15#

您好!您的邮件已经收到,我会及时回复您,感谢您对睿客网的支持。需了解更多高质量的web开发技术请移步: http://www.rehack.cn/  

相关问题