refactor: add slot name badgeList
This commit is contained in:
parent
7b3f28e67d
commit
2eb1298a24
1 changed files with 18 additions and 16 deletions
|
|
@ -96,23 +96,25 @@ function reset() {
|
||||||
<text v-if="category" class="app-text-muted q-mr-sm">
|
<text v-if="category" class="app-text-muted q-mr-sm">
|
||||||
{{ category }}
|
{{ category }}
|
||||||
</text>
|
</text>
|
||||||
<span>
|
<slot name="badgeList">
|
||||||
{{ title }}
|
<span>
|
||||||
</span>
|
{{ title }}
|
||||||
|
</span>
|
||||||
|
|
||||||
<text
|
<text
|
||||||
v-if="!!statusBranch"
|
v-if="!!statusBranch"
|
||||||
class="branch-badge branch-card__badge q-ml-sm"
|
class="branch-badge branch-card__badge q-ml-sm"
|
||||||
:class="{
|
:class="{
|
||||||
'branch-card__inactive ': statusBranch === 'INACTIVE',
|
'branch-card__inactive ': statusBranch === 'INACTIVE',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
statusBranch === 'INACTIVE'
|
statusBranch === 'INACTIVE'
|
||||||
? $t('status.INACTIVE')
|
? $t('status.INACTIVE')
|
||||||
: $t('status.ACTIVE')
|
: $t('status.ACTIVE')
|
||||||
}}
|
}}
|
||||||
</text>
|
</text>
|
||||||
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="!hideAction" class="q-mr-md" style="width: 38.8px"></div>
|
<div v-if="!hideAction" class="q-mr-md" style="width: 38.8px"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue