swiper组件怎么添加左右按钮事件
-
<Swiper className="swiper-container" ref="swiper" circular indicatorDots indicatorColor='#FFBF00' indicatorActiveColor='#000' autoplay >
{ banner && banner.length > 0 ? banner.map((item, index) => (
<SwiperItem key={index}>
<Image src={item}></Image>
{/* <View className="item" style={{backgroundImage:"url("+item+")"}}></View> */}
</SwiperItem>
)):null}
</Swiper>
-
@jd_7cbcd33707308 好像改变滑块的当前索引可以切换,所以自己搞两个按钮,点了就改索引
-
好的 我试试 3q~
-
@Taro小助手
请问一下您,垂直模式如何额设置侧边的标签页1~4的字体是竖直排列的
-
@文中正 css3里有一个属性writing-mode,我也不知道支持不,你试试咯 https://caniuse.com/#search=writing-mode 如果不行的话就写个宽度,让它折行,看起来也是一样的效果。搞 UI 的东西很多时候就是障眼法
-
@Taro-小助手-honly
请问这种如何添加 View 的 classname 试了试,没有成功