https://juejin.cn/post/7011016159545786376
https://element-plus.gitee.io/zh-CN/guide/theming.html#cli-theme-tool
style方式
首先,在需要修改样式的组件内新建一个style(不需要scoped),接着给这个组件的根元素加上一个class名,然后对要修改的元素直接进行修改。例: .rootElement 是根元素的class名, .el-progress_text 是要修改的元素
.rootElement {
.el-progress__text {
// 要修改的样式
}
}
注意:为了防止污染全局样式,一定要给根元素加一个类名