refactor: add type

This commit is contained in:
Methapon Metanipat 2024-11-26 09:32:48 +07:00
parent a0b9afb806
commit 0bb715d7ab

View file

@ -1,6 +1,6 @@
<script lang="ts" setup>
import { ref, watch } from 'vue';
import { QTableProps } from 'quasar';
import { QTableProps, QTableSlots } from 'quasar';
import { storeToRefs } from 'pinia';
import WorkerItem from './WorkerItem.vue';
@ -269,7 +269,11 @@ watch(
</q-tr>
</template>
<template #body="props">
<template
#body="props: {
row: Required<QuotationPayload['productServiceList'][number]>;
} & Omit<Parameters<QTableSlots['body']>[0], 'row'>"
>
<q-tr>
<q-td class="text-center">{{ props.rowIndex + 1 }}</q-td>
<q-td v-if="installmentInput">