Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何处理panel,swiper等组件内image加载失败后显示默认图 #1923

Closed
guiter opened this issue Sep 7, 2017 · 5 comments
Closed

Comments

@guiter
Copy link

guiter commented Sep 7, 2017

看了组件源码,img标签似乎没有添加error指令及参数,请问有什么解决方案可以解决图片加载失败后显示默认图

@airyland
Copy link
Owner

airyland commented Sep 7, 2017

暂时未实现。

@623023808
Copy link

623023808 commented Sep 9, 2017

可以用vueLazyLoad

@guiter
Copy link
Author

guiter commented Sep 9, 2017

vueLazyLoad 使用需要在img标签加指令吧,跟vux组件结合不了

@623023808
Copy link

那就自己打开vux组件代码绑定error事件啦,可以自己改的,很方便

@guiter
Copy link
Author

guiter commented Sep 9, 2017

嗯,目前是这样处理,但是不好维护,期待后续vux会加上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants