We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.15.14
win10/ 109.0.5414.120
2.7.16
https://codepen.io/ziyoung/pen/LKNBqB
如链接
加上 loading="lazy"属性后图片可以正常显示
加上 loading="lazy"属性后图片不显示
The text was updated successfully, but these errors were encountered:
这里是加载图片的代码,这里的图片并未放到dom中,当给图片标签加上 loading="lazy" 且没有添加到dom中,onload onerror 方法就不会执行。建议可以使用el-image的 :lazy="true" 实现图片懒加载
Sorry, something went wrong.
:lazy="true" 有性能问题
Successfully merging a pull request may close this issue.
Element UI version
2.15.14
OS/Browsers version
win10/ 109.0.5414.120
Vue version
2.7.16
Reproduction Link
https://codepen.io/ziyoung/pen/LKNBqB
Steps to reproduce
如链接
What is Expected?
加上 loading="lazy"属性后图片可以正常显示
What is actually happening?
加上 loading="lazy"属性后图片不显示
The text was updated successfully, but these errors were encountered: