Compare commits

...

3 Commits

Author SHA1 Message Date
d8c0a8b8e3 feat : creation du composant datatable (WIP) 2026-02-13 16:06:55 +01:00
gitea-actions
f58dc36a0d chore: bump version to v0.0.46
All checks were successful
Auto Tag Develop / tag (push) Successful in 4s
Build Release Artefact / build (push) Successful in 1m15s
2026-02-13 13:07:36 +00:00
15c0f414af fix : corrections doublon fixture
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
2026-02-13 14:07:25 +01:00
4 changed files with 33 additions and 39 deletions

View File

@@ -1,2 +1,2 @@
parameters: parameters:
app.version: '0.0.45' app.version: '0.0.46'

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>

View File

@@ -1,38 +0,0 @@
<?php
declare(strict_types=1);
namespace App\DataFixtures;
use App\Entity\Address;
use App\Entity\Supplier;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
class SupplierFixtures extends Fixture
{
public function load(ObjectManager $manager): void
{
$address = new Address()
->setLabel('LIOT CHATELLERAULT')
->setStreet("14 Allée d'Argenson")
->setStreet2('ZI Nord')
->setPostalCode('86100')
->setCity('CHATELLERAULT')
->setCountryCode('FR')
;
$supplier = new Supplier()
->setName('LIOT')
->setEmail('lpc.contacts@lpc-liot.fr')
->setPhone('05.49.20.09.10')
;
$supplier->getAddresses()->add($address);
$manager->persist($address);
$manager->persist($supplier);
$manager->flush();
}
}