fix: no gender badge color

This commit is contained in:
puriphatt 2024-07-03 02:46:27 +00:00
parent e490d0a492
commit 7de0f225e6
3 changed files with 9 additions and 2 deletions

View file

@ -254,7 +254,7 @@ function reset() {
.badge { .badge {
display: inline-block; display: inline-block;
border-radius: var(--radius-6); border-radius: var(--radius-6);
background-color: var(--surface-2); background-color: var(--surface-tab);
text-wrap: nowrap; text-wrap: nowrap;
} }
</style> </style>

View file

@ -220,6 +220,7 @@ defineEmits<{
'bg-gender__male': !v.disabled && v.male, 'bg-gender__male': !v.disabled && v.male,
'bg-gender__female': !v.disabled && v.female, 'bg-gender__female': !v.disabled && v.female,
'bg-gender__disable': v.disabled, 'bg-gender__disable': v.disabled,
empty: !v.male && !v.female,
}" }"
> >
{{ v.badge }} {{ v.badge }}
@ -381,6 +382,10 @@ defineEmits<{
border-radius: var(--radius-6); border-radius: var(--radius-6);
background-color: var(--surface-2); background-color: var(--surface-2);
text-wrap: nowrap; text-wrap: nowrap;
&.empty {
background-color: var(--surface-tab);
}
} }
.edit-profile { .edit-profile {

View file

@ -749,7 +749,9 @@ watch(inputSearch, async () => await fetchUserList());
:badgeClass=" :badgeClass="
formData.gender === 'male' formData.gender === 'male'
? 'app-bg-male text-white' ? 'app-bg-male text-white'
: 'app-bg-female text-white' : formData.gender === 'female'
? 'app-bg-female text-white'
: ''
" "
:badgeLabel="userCode" :badgeLabel="userCode"
:isEdit="infoDrawerEdit" :isEdit="infoDrawerEdit"