27 lines
775 B
Vue
27 lines
775 B
Vue
<template>
|
|
<div :class="['bg-gray-800 p-3 min-h-14', $attrs.class]">
|
|
<div class="flex flex-row items-center justify-between">
|
|
<!-- Left section -->
|
|
<ToolbarSection :items="config.leftSection" />
|
|
|
|
<!-- Right section -->
|
|
<ToolbarSection :items="config.rightSection" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import ToolbarSection from './ToolbarSection.vue';
|
|
|
|
defineProps({
|
|
config: {
|
|
type: Object,
|
|
required: true,
|
|
validator: value => {
|
|
// Vérifie que leftSection et rightSection sont des tableaux
|
|
return Array.isArray(value.leftSection) && Array.isArray(value.rightSection);
|
|
}
|
|
}
|
|
});
|
|
</script>
|