CSS中
// 先用一个标签将这个组件包起来,然后通过父查子的方式来找到组件的类,注意是通过>>>来查找
<style scoped>
.box >>> .el-checkbox__inner {
border-radius: 50%;
}
</style>
less和sass中
// less语法要通过/deep/ 来找到子级的类
<style scoped lang="less">
.box {
/deep/ .el-checkbox__inner{
border-radius: 50%;
}
}
</style>