refs 5987 index cards and light mode #79
|
@ -113,12 +113,10 @@ watch($props, async () => {
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<span v-if="$props.title" :title="$props.title">
|
<span v-if="$props.title" :title="$props.title">
|
||||||
{{ $props.title }}
|
{{ $props.title }}
|
||||||
<QTooltip>{{ $props.title }}</QTooltip>
|
|
||||||
</span>
|
</span>
|
||||||
<slot v-else name="description" :entity="entity">
|
<slot v-else name="description" :entity="entity">
|
||||||
<span :title="entity.name">
|
<span :title="entity.name">
|
||||||
{{ entity.name }}
|
{{ entity.name }}
|
||||||
<QTooltip>{{ entity.name }}</QTooltip>
|
|
||||||
</span>
|
</span>
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
@ -198,7 +196,7 @@ watch($props, async () => {
|
||||||
.list-box {
|
.list-box {
|
||||||
|
|||||||
width: 90%;
|
width: 90%;
|
||||||
background-color: $descriptor-items-box;
|
background-color: $descriptor-items-box;
|
||||||
alexm
commented
Esta variable debería estar o definida aquí o tener un nombre mas genérico. Dado que esta definida de manera global Esta variable debería estar o definida aquí o tener un nombre mas genérico. Dado que esta definida de manera global
|
|||||||
margin: 20px 10px 0 10px;
|
margin: 10px auto;
|
||||||
padding: 10px 5px 10px 0px;
|
padding: 10px 5px 10px 0px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
.q-item__label {
|
.q-item__label {
|
||||||
|
|
|
@ -127,105 +127,6 @@ function viewSummary(id) {
|
||||||
</QBtn>
|
</QBtn>
|
||||||
</template>
|
</template>
|
||||||
</CardList>
|
</CardList>
|
||||||
<QCard class="card q-mb-md" v-for="row of rows" :key="row.id">
|
|
||||||
<QItem
|
|
||||||
class="q-pa-none items-start cursor-pointer q-hoverable"
|
|
||||||
v-ripple
|
|
||||||
clickable
|
|
||||||
>
|
|
||||||
<QItemSection class="q-pa-md" @click="navigate(row.id)">
|
|
||||||
<div class="text-h6">{{ row.name }}</div>
|
|
||||||
<QItemLabel caption>#{{ row.id }}</QItemLabel>
|
|
||||||
<QList>
|
|
||||||
<QItem class="q-pa-none">
|
|
||||||
<QItemSection>
|
|
||||||
<QItemLabel caption>
|
|
||||||
{{ t('ticket.list.nickname') }}
|
|
||||||
</QItemLabel>
|
|
||||||
<QItemLabel>
|
|
||||||
{{ row.nickname }}
|
|
||||||
</QItemLabel>
|
|
||||||
</QItemSection>
|
|
||||||
<QItemSection>
|
|
||||||
<QItemLabel caption>
|
|
||||||
{{ t('ticket.list.state') }}
|
|
||||||
</QItemLabel>
|
|
||||||
<QItemLabel>
|
|
||||||
<QBadge
|
|
||||||
:color="row.classColor ?? 'orange'"
|
|
||||||
class="q-ma-none"
|
|
||||||
dense
|
|
||||||
>
|
|
||||||
{{ row.state }}
|
|
||||||
</QBadge>
|
|
||||||
</QItemLabel>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem class="q-pa-none">
|
|
||||||
<QItemSection>
|
|
||||||
<QItemLabel caption>
|
|
||||||
{{ t('ticket.list.shipped') }}
|
|
||||||
</QItemLabel>
|
|
||||||
<QItemLabel>
|
|
||||||
{{ toDate(row.shipped) }}
|
|
||||||
</QItemLabel>
|
|
||||||
</QItemSection>
|
|
||||||
<QItemSection>
|
|
||||||
<QItemLabel caption>
|
|
||||||
{{ t('Zone') }}
|
|
||||||
</QItemLabel>
|
|
||||||
<QItemLabel>
|
|
||||||
{{ row.zoneName }}
|
|
||||||
</QItemLabel>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem class="q-pa-none">
|
|
||||||
<QItemSection>
|
|
||||||
<QItemLabel caption>
|
|
||||||
{{ t('ticket.list.salesPerson') }}
|
|
||||||
</QItemLabel>
|
|
||||||
<QItemLabel>
|
|
||||||
{{ row.salesPerson }}
|
|
||||||
</QItemLabel>
|
|
||||||
</QItemSection>
|
|
||||||
<QItemSection>
|
|
||||||
<QItemLabel caption>
|
|
||||||
{{ t('ticket.list.total') }}
|
|
||||||
</QItemLabel>
|
|
||||||
<QItemLabel>
|
|
||||||
{{ toCurrency(row.totalWithVat) }}
|
|
||||||
</QItemLabel>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
</QList>
|
|
||||||
</QItemSection>
|
|
||||||
<QSeparator vertical />
|
|
||||||
<QCardActions vertical class="justify-between">
|
|
||||||
<QBtn
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
color="orange"
|
|
||||||
icon="arrow_circle_right"
|
|
||||||
@click="navigate(row.id)"
|
|
||||||
>
|
|
||||||
<QTooltip>
|
|
||||||
{{ t('components.smartCard.openCard') }}
|
|
||||||
</QTooltip>
|
|
||||||
</QBtn>
|
|
||||||
<QBtn
|
|
||||||
flat
|
|
||||||
round
|
|
||||||
color="grey-7"
|
|
||||||
icon="preview"
|
|
||||||
@click="viewSummary(row.id)"
|
|
||||||
>
|
|
||||||
<QTooltip>
|
|
||||||
{{ t('components.smartCard.openSummary') }}
|
|
||||||
</QTooltip>
|
|
||||||
</QBtn>
|
|
||||||
</QCardActions>
|
|
||||||
</QItem>
|
|
||||||
</QCard>
|
|
||||||
</template>
|
</template>
|
||||||
</VnPaginate>
|
</VnPaginate>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Podries gastar el color de una de les variables que has creat:
https://gitea.verdnatura.es/verdnatura/salix-front/pulls/79/files#diff-b1e76443679ed8e3f9150534016e8ec63d3c1f9f
I possarli lo de light i tal pero de manera global