Form: required FormItem displays asterisk when label is auto (#15144)

pull/15152/head
hetech 2019-04-17 11:04:28 +08:00 committed by GitHub
parent 01a4118c51
commit 993e9a12fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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