实现效果:
样式代码如下:(可以写在common.scss文件夹中)
.el-dialog__header {
padding: 16px 20px;
border-bottom: 1px solid #DCDFE6;
display: flex;
align-items: center;
.el-dialog__title {
font-size: 16px;
position: relative;
padding-left: 10px;
&:after {
content: ' ';
position: absolute;
height: 16px;
width: 4px;
top: 4px;
left: 0;
background-color: #3377FF;
border-radius: 4px;
}
}
}