feat : creation du composant datatable (WIP)

This commit is contained in:
2026-02-13 16:06:55 +01:00
parent f58dc36a0d
commit d8c0a8b8e3
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<template>
<table class="w-full border-collapse border border-slate-300">
<thead>
<tr>
<th
v-for="(column, index) in columns"
:key="index"
class="border border-slate-300 px-3 py-2 text-left"
>
{{ column }}
</th>
</tr>
</thead>
</table>
</template>
<script setup lang="ts">
defineProps<{
columns: string[]
data?: any[]
}>()
</script>

View File

@@ -0,0 +1,10 @@
<template>
<UiDataTable
:columns="rowsLabel"
/>
</template>
<script setup lang="ts">
const rowsLabel = ['Numéro', 'Date', 'Foursnisseur', 'Poids', 'Date', 'Foursnisseur', 'Poids', 'Date', 'Foursnisseur', 'Poids', 'Date', 'Foursnisseur', 'Poids', 'Date', 'Foursnisseur', 'Poids']
</script>