mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-30 05:42:19 +00:00
perf: update form label require star
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user