- 通过>>>穿透scoped
<style scoped>
外层类名>>>第三方组件类名{
width:50px;
...
}
</style>
2.less预处理器:/deep/
<style lang='less' scoped>
/deep/ 第三方组件类名{
width:50px;
...
}
</style>
- scss预处理器:::v-deep
<style lang='scss' scoped>
::v-deep 第三方组件类名{
width:50px;
...
}
</style>