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

关于图片地址错误,设置错误时的默认图片 #149

Open
Sunny-kai opened this issue Nov 25, 2020 · 6 comments
Open

关于图片地址错误,设置错误时的默认图片 #149

Sunny-kai opened this issue Nov 25, 2020 · 6 comments

Comments

@Sunny-kai
Copy link

大佬,请问一下这种应该怎么处理

@mirari
Copy link
Owner

mirari commented Nov 25, 2020

原始图片的展示可以自己在slot里实现
viewer浏览模式的话就没办法了,只能自己修改viewerjs源码

@Sunny-kai
Copy link
Author

具体位置大佬能给个嘛

@zhanbinbin
Copy link

能不能监听下img标签的onerror事件,图片错误时换一种表现形式,追加个刷新的功能,很多线上的图片服务都有时效性

@Mess663
Copy link

Mess663 commented Nov 21, 2024

原始图片的展示可以自己在slot里实现 viewer浏览模式的话就没办法了,只能自己修改viewerjs源码

大佬,我也遇到这个问题,请问不支持这个功能,是有什么设计上的考虑吗?

@mirari

@mirari
Copy link
Owner

mirari commented Nov 21, 2024

可能现在没精力维护新功能吧,viewerjs的结构不太容易支持高度定制的需求

虽然不支持错误的默认图片,但是可以考虑错误时移除,参考filter的配置:
https://github.com/fengyuanchen/viewerjs?tab=readme-ov-file#filter

@Mess663
Copy link

Mess663 commented Nov 21, 2024

可能现在没精力维护新功能吧,viewerjs的结构不太容易支持高度定制的需求

虽然不支持错误的默认图片,但是可以考虑错误时移除,参考filter的配置: https://github.com/fengyuanchen/viewerjs?tab=readme-ov-file#filter

感谢~

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

No branches or pull requests

4 participants