refactor: add slot name badgeList

This commit is contained in:
Net 2024-09-04 14:35:53 +07:00
parent 7b3f28e67d
commit 2eb1298a24

View file

@ -96,23 +96,25 @@ function reset() {
<text v-if="category" class="app-text-muted q-mr-sm">
{{ category }}
</text>
<span>
{{ title }}
</span>
<slot name="badgeList">
<span>
{{ title }}
</span>
<text
v-if="!!statusBranch"
class="branch-badge branch-card__badge q-ml-sm"
:class="{
'branch-card__inactive ': statusBranch === 'INACTIVE',
}"
>
{{
statusBranch === 'INACTIVE'
? $t('status.INACTIVE')
: $t('status.ACTIVE')
}}
</text>
<text
v-if="!!statusBranch"
class="branch-badge branch-card__badge q-ml-sm"
:class="{
'branch-card__inactive ': statusBranch === 'INACTIVE',
}"
>
{{
statusBranch === 'INACTIVE'
? $t('status.INACTIVE')
: $t('status.ACTIVE')
}}
</text>
</slot>
</div>
<div v-if="!hideAction" class="q-mr-md" style="width: 38.8px"></div>