ย้ายไอคอน

This commit is contained in:
STW_TTTY\stwtt 2024-07-26 17:00:34 +07:00
parent c9ca72f5b1
commit 5c84afa6a8
7 changed files with 181 additions and 197 deletions

View file

@ -189,22 +189,10 @@ onMounted(() => {
>
<span class="text-weight-medium">{{ col.label }}</span>
</q-th>
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-td auto-width>
<q-icon
v-if="props.row.isDefault === true"
name="mdi-bookmark"
size="xs"
color="primary"
>
<q-tooltip>เวลา Default</q-tooltip>
</q-icon>
</q-td>
<q-td>
<q-btn
dense
@ -215,6 +203,16 @@ onMounted(() => {
@click="onClickDelete(props.row.id)"
/>
</q-td>
<q-td auto-width>
<q-icon
v-if="props.row.isDefault === true"
name="mdi-bookmark"
size="xs"
color="primary"
>
<q-tooltip>เวลา Default</q-tooltip>
</q-icon>
</q-td>
<q-td
v-for="col in props.cols"
:key="col.name"
@ -239,7 +237,6 @@ onMounted(() => {
{{ col.value }}
</div>
</q-td>
</q-tr>
</template>
</d-table>