1. 在組件上定義類值:
class="status_change"

2. 定義style
// 不要在style上定義socpe
<style lang="less">
.status_change{
.el-dialog__header{
background-color:#4A77AC;
.el-dialog__title,.el-dialog__headerbtn i{
color: white;
}
}
}
</style>
效果:
