原生样式:
修改后的效果
代码如下:
::v-deep .el-carousel__indicators--horizontal {
position: absolute;
bottom: 5px;
text-align: right;
.el-carousel__indicator--horizontal button {
width: 6px; 设置被选中前的样式
height: 6px;
background: #ffffff;
border-radius: 50%;
opacity: 0.5;
}
.el-carousel__indicator--horizontal.is-active button {
width: 14px; 设置被选中后的样式
height: 6px;
background: #ffffff;
opacity: 1;
border-radius: 10px;
}
}