perf: update form label require star

This commit is contained in:
ibuler
2025-02-28 15:55:51 +08:00
parent 1fdfd8e2d8
commit 0dd11735fc
3 changed files with 16 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
>
<template v-if="data.label" #label>
<span :title="data.label">
<span v-if="data.required">* </span>
{{ data.label }}
<el-tooltip
v-if="data.helpTip"

View File

@@ -164,6 +164,7 @@ export default {
& ::v-deep .el-tag {
margin-bottom: 1px;
font-family: sans-serif !important;
margin-left: 5px;
}
& ::v-deep .el-autocomplete {

View File

@@ -666,3 +666,17 @@ li.rmenu i.fa {
margin-right: 80px;
}
}
.el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label {
span {
&::before {
content: '*';
margin-right: 4px;
color: #ff4d4f;
}
}
&::before {
display: none;
}
}