feat : ajout d'un playground de formulaire + fix Select.vue, SelectCheckbox.vue et Checkbox.vue

This commit is contained in:
2026-05-07 17:56:17 +02:00
parent 174f1f9a64
commit e31f1eedac
9 changed files with 143 additions and 68 deletions
+9 -1
View File
@@ -113,12 +113,20 @@ const groups = computed<Group[]>(() => {
categoryMap.get(category)!.push({name, label: name})
})
return Array.from(categoryMap.entries())
const componentGroups = Array.from(categoryMap.entries())
.sort(([a], [b]) => a.localeCompare(b))
.map(([category, items]) => ({
category: category.charAt(0).toUpperCase() + category.slice(1),
items: items.sort((a, b) => a.label.localeCompare(b.label)),
}))
return [
...componentGroups,
{
category: 'Form',
items: [{name: 'client', label: 'Client'}],
},
]
})
const openCategories = reactive(new Set<string>())