uView中Swiper轮播图的指示器的选中颜色如何修改?


<u-swiper :height="294" :list="list" :title="false" :effect3d="false"
:indicator-pos="bottomCenter" mode="dot" :interval="3000" @click="click"></u-swiper>

img

写2个样式覆盖下swiper默认的就行,有帮助麻烦点个采纳【本回答右上角】,谢谢~~有其他问题可以继续交流~

img

.u-indicator-item-round{background-color:#f00 !important}
.u-indicator-item-round-active{background-color:blue !important}

要在App.vue 里面写样式,不然不会有效的。

/deep/ .u-indicator-item-dot-active {
background-color: #D00CFF;
}

找我