refactor: handle title i18n

This commit is contained in:
Thanaphon Frappet 2024-11-07 15:12:06 +07:00
parent 036f8c2891
commit 850782a44d
2 changed files with 48 additions and 9 deletions

View file

@ -0,0 +1,33 @@
<script lang="ts" setup>
import { QuotationPayload } from 'src/stores/quotations/types';
import { QTableProps } from 'quasar';
const props = withDefaults(
defineProps<{
rows: QTableProps['rows'];
columns: QTableProps['columns'];
grid?: boolean;
fieldSelected?: string[];
}>(),
{
row: () => [],
column: () => [],
grid: false,
fieldSelected: () => [],
},
);
</script>
<template>
<q-table v-bind="props">
<template v-slot:header="props">
<q-tr style="background-color: #f0fff1" :props="props">
<q-th v-for="col in props.cols" :key="col.name" :props="props">
{{ col.label }}
</q-th>
</q-tr>
</template>
</q-table>
</template>
<style scoped></style>