swiper和swiper-item组件使用

常用属性 值 默认值

swiper常用属性值
属性 类型 默认值 说明
indicator-dots boolean false 是否展示面板指示点
indicator-color  color   rgba(0,0,0,3)  指示点颜色
 indicator-active-color  color  #000000  选中时指示点颜色
 autoplay  boolean  false  是否自动切换
 interval  number  5000  自动切换时间间隔
 circular  boolean  false  是否采用衔接滑动

 

1、使用swiper 布局

 

 

2、美化样式

 

posted @ 2022-11-08 23:47  java_code_zx  阅读(216)  评论(0)    收藏  举报