1.总结:去掉scoped ,加上lang=less, 在最外层上的div加上/deep/
<style lang="less">
.mint-switch /deep/ {
.mint-switch-core {
height: 25px;
45px;
}
.mint-switch-core:after {
height: 23px;
23px;
right: 20px;
}
.mint-switch-core:before {
23px;
height: 24px;
}
.mint-switch-input:checked+.mint-switch-core {
background-color: rgba(229, 139, 29);
border-color: rgba(229, 139, 29);
}
}