ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.61k stars 2.39k forks source link

安卓部分机型 Image组件图片加载不出来偶现 #6413

Closed chencheng666 closed 8 months ago

chencheng666 commented 10 months ago

Version of antd-mobile

5.28.0

Operating system and its version

Android

Browser and its version

安卓系统: MIUI 12.5.12 机型:MI11Pro

Sandbox to reproduce

No response

What happened?

安卓的h5界面使用的Image组件的列表,部分图片加载不出来 使用的是lazy加载模式 ,调试后发现image标签的src没有 style的display为none 将这个none的样式去除后 图片就出来了,ios上没有这个问题 本地浏览器调试也没有 只有部分的安卓机型会存在

Relevant log output

<Image src={url} lazy={lazy} fallback={fallback} fit={fit} placeholder={fallback} style={{'borderRadius':radius}} height={resultHeight} width={resultWidth} {...rest}/>
调用的地方
github-actions[bot] commented 8 months ago

Hi, chencheng666.

Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz.

我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandboxstackblitz 创建一个实例。

bjfxgao commented 7 months ago

同样出现这个问题 只有在安卓手机 谷歌浏览器上 图片不渲染src

Sneaken commented 7 months ago

谷歌浏览器 横向滚动 IntersectionObserver 不触发 不知道为什么