fix: no gender badge color
This commit is contained in:
parent
e490d0a492
commit
7de0f225e6
3 changed files with 9 additions and 2 deletions
|
|
@ -254,7 +254,7 @@ function reset() {
|
|||
.badge {
|
||||
display: inline-block;
|
||||
border-radius: var(--radius-6);
|
||||
background-color: var(--surface-2);
|
||||
background-color: var(--surface-tab);
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -220,6 +220,7 @@ defineEmits<{
|
|||
'bg-gender__male': !v.disabled && v.male,
|
||||
'bg-gender__female': !v.disabled && v.female,
|
||||
'bg-gender__disable': v.disabled,
|
||||
empty: !v.male && !v.female,
|
||||
}"
|
||||
>
|
||||
{{ v.badge }}
|
||||
|
|
@ -381,6 +382,10 @@ defineEmits<{
|
|||
border-radius: var(--radius-6);
|
||||
background-color: var(--surface-2);
|
||||
text-wrap: nowrap;
|
||||
|
||||
&.empty {
|
||||
background-color: var(--surface-tab);
|
||||
}
|
||||
}
|
||||
|
||||
.edit-profile {
|
||||
|
|
|
|||
|
|
@ -749,7 +749,9 @@ watch(inputSearch, async () => await fetchUserList());
|
|||
:badgeClass="
|
||||
formData.gender === 'male'
|
||||
? 'app-bg-male text-white'
|
||||
: 'app-bg-female text-white'
|
||||
: formData.gender === 'female'
|
||||
? 'app-bg-female text-white'
|
||||
: ''
|
||||
"
|
||||
:badgeLabel="userCode"
|
||||
:isEdit="infoDrawerEdit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue