docs(playground) : TabList — exemple 3 onglets + maxVisibleTabs (fenêtrage inactif)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -53,6 +53,19 @@
|
|||||||
<template #parametres><p class="p-4">Contenu Paramètres</p></template>
|
<template #parametres><p class="p-4">Contenu Paramètres</p></template>
|
||||||
</MalioTabList>
|
</MalioTabList>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="rounded-lg border p-4">
|
||||||
|
<h2 class="mb-1 text-xl font-bold">Peu d'onglets avec maxVisibleTabs</h2>
|
||||||
|
<p class="mb-4 text-sm text-m-muted">
|
||||||
|
3 onglets avec <code>:max-visible-tabs="5"</code> — le fenêtrage ne s'active pas
|
||||||
|
(onglets ≤ max), donc pas de flèches, affichage normal centré.
|
||||||
|
</p>
|
||||||
|
<MalioTabList v-model="fewValue" :tabs="fewTabs" :max-visible-tabs="5">
|
||||||
|
<template #general><p class="p-4">Contenu Général</p></template>
|
||||||
|
<template #adresses><p class="p-4">Contenu Adresses</p></template>
|
||||||
|
<template #contacts><p class="p-4">Contenu Contacts</p></template>
|
||||||
|
</MalioTabList>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -91,4 +104,11 @@ const simpleValue = ref('qualimat')
|
|||||||
const noIconValue = ref('tab1')
|
const noIconValue = ref('tab1')
|
||||||
const twoTabValue = ref('general')
|
const twoTabValue = ref('general')
|
||||||
const manyValue = ref('infos')
|
const manyValue = ref('infos')
|
||||||
|
|
||||||
|
const fewTabs = [
|
||||||
|
{ key: 'general', label: 'Général', icon: 'mdi:information-outline' },
|
||||||
|
{ key: 'adresses', label: 'Adresses', icon: 'mdi:map-marker-outline' },
|
||||||
|
{ key: 'contacts', label: 'Contacts', icon: 'mdi:account-box-outline' },
|
||||||
|
]
|
||||||
|
const fewValue = ref('general')
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user