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