1.总结:去掉scoped ,加上lang=less, 在最外层上的div加上/deep/

 

<style lang="less">
.mint-switch /deep/ {
.mint-switch-core {
height: 25px;
width: 45px;
}

.mint-switch-core:after {
height: 23px;
width: 23px;
right: 20px;
}

.mint-switch-core:before {
width: 23px;
height: 24px;
}

.mint-switch-input:checked+.mint-switch-core {
background-color: rgba(229, 139, 29);
border-color: rgba(229, 139, 29);
}
}

posted on 2020-09-18 11:00  心意如水hucuie22  阅读(341)  评论(0编辑  收藏  举报