refactor: handle title i18n
This commit is contained in:
parent
036f8c2891
commit
850782a44d
2 changed files with 48 additions and 9 deletions
33
src/components/05_quotation/TableQuotation.vue
Normal file
33
src/components/05_quotation/TableQuotation.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue