feat: defineProps customerLabel
This commit is contained in:
parent
507706b4d2
commit
04d450f0f4
1 changed files with 24 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ defineProps<{
|
||||||
addressSeparator?: boolean;
|
addressSeparator?: boolean;
|
||||||
branchStatus?: string;
|
branchStatus?: string;
|
||||||
badgeLabel?: string;
|
badgeLabel?: string;
|
||||||
|
customerLabel?: string;
|
||||||
badgeClass?: string;
|
badgeClass?: string;
|
||||||
noFooter?: boolean;
|
noFooter?: boolean;
|
||||||
noAppBox?: boolean;
|
noAppBox?: boolean;
|
||||||
|
|
@ -40,7 +41,20 @@ const zipCode = defineModel<string>('zipCode', { default: '' });
|
||||||
<div class="col text-subtitle1 text-weight-bold text-center">
|
<div class="col text-subtitle1 text-weight-bold text-center">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
|
|
||||||
<text>{{ branchStatus ? `(${branchStatus})` : '' }}</text>
|
<text v-if="customerLabel">
|
||||||
|
:
|
||||||
|
<text
|
||||||
|
class="text-customer"
|
||||||
|
:class="{ 'dark-text': $q.dark.isActive }"
|
||||||
|
style="color: var(--purple-8)"
|
||||||
|
>
|
||||||
|
{{ $t(customerLabel) }}
|
||||||
|
</text>
|
||||||
|
</text>
|
||||||
|
|
||||||
|
<text v-if="branchStatus">
|
||||||
|
{{ branchStatus }}
|
||||||
|
</text>
|
||||||
<text
|
<text
|
||||||
v-if="badgeLabel"
|
v-if="badgeLabel"
|
||||||
class="badge-label q-px-sm text-caption"
|
class="badge-label q-px-sm text-caption"
|
||||||
|
|
@ -192,4 +206,13 @@ const zipCode = defineModel<string>('zipCode', { default: '' });
|
||||||
background-color: var(--surface-2);
|
background-color: var(--surface-2);
|
||||||
text-wrap: nowrap;
|
text-wrap: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-customer {
|
||||||
|
--_var-filter: grayscale(30%);
|
||||||
|
|
||||||
|
filter: var(--_var-filter);
|
||||||
|
&.dark-text {
|
||||||
|
--_var-filter: grayscale(0%);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue