- Corriger la troncature de la toolbar (max-height 4rem → 5rem) - Animer la toolbar en translateY pour un effet "bloc uni" avec le header - Corriger le bug d'auto-hide du header après switch simple → scroll - Augmenter la taille du titre de chapitre dans la toolbar (text-sm font-medium) - Harmoniser le bouton scroll-to-top avec le style des ToolbarButtons - Ajouter support de prop `class` sur les labels de ToolbarSection
29 lines
792 B
Vue
29 lines
792 B
Vue
<template>
|
|
<div :class="['bg-gray-800 min-h-14 p-3', $attrs.class]">
|
|
<div class="flex flex-row items-center justify-between h-full">
|
|
<!-- Left section -->
|
|
<ToolbarSection :items="config.leftSection" />
|
|
|
|
<!-- Center section (optional slot) -->
|
|
<slot name="center" />
|
|
|
|
<!-- Right section -->
|
|
<ToolbarSection :items="config.rightSection" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import ToolbarSection from './ToolbarSection.vue';
|
|
|
|
defineProps({
|
|
config: {
|
|
type: Object,
|
|
required: true,
|
|
validator: value => {
|
|
return Array.isArray(value.leftSection) && Array.isArray(value.rightSection);
|
|
}
|
|
}
|
|
});
|
|
</script>
|