feat: แสดงลำดับ การเลือก

This commit is contained in:
Net 2024-06-24 09:43:34 +07:00
parent 1324c1fca3
commit 848f35e47e

View file

@ -30,6 +30,7 @@ withDefaults(
id?: string; id?: string;
process?: number; process?: number;
createdAt?: string; createdAt?: string;
index?: number;
}>(), }>(),
{ {
isSelected: false, isSelected: false,
@ -45,9 +46,11 @@ withDefaults(
style="box-shadow: var(--shadow-3); width: 240px; height: 286px" style="box-shadow: var(--shadow-3); width: 240px; height: 286px"
@click="$emit('select', data)" @click="$emit('select', data)"
> >
<div class="q-pa-sm" :class="{ inactive: status }"> <div class="q-pa-sm">
<div class="row flex justify-between text-bold"> <div class="row flex justify-between text-bold">
<div class="col-9">{{ title ?? 'title' }}</div> <div class="col-9" :class="{ inactive: status }">
{{ title ?? 'title' }}
</div>
<div <div
v-if="isSelected === false" v-if="isSelected === false"
class="col-3 relative-position" class="col-3 relative-position"
@ -57,7 +60,7 @@ withDefaults(
flat flat
round round
padding="sm" padding="sm"
class="absolute-top-right dots-btn app-text-muted" class="absolute-top-right dots-btn"
icon="mdi-dots-vertical" icon="mdi-dots-vertical"
size="sm" size="sm"
@click.stop="" @click.stop=""
@ -110,9 +113,11 @@ withDefaults(
size="18px" size="18px"
text-color="white" text-color="white"
> >
1 {{ (index ?? 0) + 1 }}
</q-avatar> </q-avatar>
</div> </div>
<div :class="{ inactive: status }">
<div class="app-text-muted">{{ code ?? 'code' }}</div> <div class="app-text-muted">{{ code ?? 'code' }}</div>
<div class="flex justify-start text-bold"> <div class="flex justify-start text-bold">
<div <div
@ -176,6 +181,7 @@ withDefaults(
</div> </div>
</div> </div>
</div> </div>
</div>
</AppBox> </AppBox>
</template> </template>