feat: inactive branch card
This commit is contained in:
parent
786f9affa8
commit
7c530c1149
1 changed files with 9 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ defineProps<{
|
|||
branchLabelStatus: string;
|
||||
};
|
||||
fieldSelected?: string[];
|
||||
inactive?: boolean;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
|
|
@ -18,6 +19,7 @@ defineProps<{
|
|||
<div
|
||||
class="branch-card rounded bordered"
|
||||
:class="{
|
||||
'branch-card__inactive': inactive,
|
||||
'branch-card__hq': data.hq,
|
||||
'branch-card__br': !data.hq,
|
||||
}"
|
||||
|
|
@ -45,10 +47,11 @@ defineProps<{
|
|||
<q-btn
|
||||
@click="$emit('view-detail', data)"
|
||||
:label="$t('viewDetail')"
|
||||
rounded
|
||||
outline
|
||||
dense
|
||||
no-caps
|
||||
class="q-px-md"
|
||||
class="q-px-md text-caption"
|
||||
v-if="i === 0"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -69,6 +72,11 @@ defineProps<{
|
|||
--_branch-card-row-bg: var(--violet-11-hsl);
|
||||
}
|
||||
|
||||
&.branch-card__inactive {
|
||||
filter: grayscale(100%);
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue