去掉form表单原有的label的星号,label用slot代替,添加after伪类
.el-form-content{
/deep/ .el-form-item__label{
text-align: justify;
}
/deep/ .el-form-item__label::after{
content: ' ';
width: 100%;
display: inline-block;
}
/deep/ .el-form-item__label::before{
display: none;
}
.slot_form_label{
position: relative;
}
.slot_form_label::after{
content: '*';
width: 100%;
display: inline-block;
position: absolute;
left: -10px;
color: red;
}
}