fix(theme-chalk): [el-form] no display red asterisk when width is auto (#3222)

fix #3221
This commit is contained in:
msidolphin 2021-09-03 16:46:19 +08:00 committed by GitHub
parent 80ccfef93c
commit e4032821a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,9 @@
@include when(required) {
@include pseudo('not(.is-no-asterisk)') {
& > .#{$namespace}-form-item__label:before {
& > .#{$namespace}-form-item__label:before,
& > .#{$namespace}-form-item__label-wrap > .#{$namespace}-form-item__label:before
{
content: '*';
color: var(--el-color-danger);
margin-right: 4px;