使用swipe组件,切换图片时出现闪烁
解决方案:
父元素上增加样式style="transform:translate3d(0,0,0);overflow:hidden;"
子元素增加样式style="max-height:100%;max-width:100%;transform:translate3d(0,0,0)"
<van-swipe :show-indicators="false" :loop="false" ref="swipeImg" :stop-propagation="false"
style="t...
原创
2021-07-12 16:35:26 ·
964 阅读 ·
4 评论