支付宝小程序 Swiper组件bug
-
真的就是一个很简单的轮播组件,都能出bug吗???
- 刚渲染出来后直接展示图3
- 轮播到图2后发现图2是一片白
- 轮播回到图1发现其实是图2
- 所以你们是把图1吃了,然后占了图2的位置,再把图2放到图1的位置???
<Swiper style={{ height: '150px' }} previousMargin="10px" nextMargin="10px" indicatorColor='#ffffff' indicatorActiveColor='#c6e0fe' indicatorDots autoplay circular > <SwiperItem> <View style={{ height: '150px', background: 'blue', color: '#fff' }}>1</View> </SwiperItem> <SwiperItem> <View style={{ height: '150px',background: 'blue', color: '#fff' }}>2</View> </SwiperItem> <SwiperItem> <View style={{ height: '150px',background: 'blue', color: '#fff' }}>3</View> </SwiperItem> </Swiper>
-
@15990158853_p 同问,有解决吗?
-
同问 swiper写的真的莫名其妙