feat: inactive branch card

This commit is contained in:
Methapon2001 2024-04-18 12:50:27 +07:00
parent 786f9affa8
commit 7c530c1149

View file

@ -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;