1
0
forked from test/crm

fix: added slot in LayoutHeader to overwrite it

This commit is contained in:
Shariq Ansari 2024-05-27 14:14:14 +05:30
parent ba811d725a
commit 9c0a966e39

View File

@ -1,13 +1,15 @@
<template> <template>
<Teleport to="#app-header" v-if="showHeader"> <Teleport to="#app-header" v-if="showHeader">
<header class="flex justify-between items-center pl-5 py-2.5 h-12"> <slot>
<div class="flex items-center gap-2"> <header class="flex h-12 items-center justify-between py-2.5 pl-5">
<slot name="left-header" /> <div class="flex items-center gap-2">
</div> <slot name="left-header" />
<div class="flex items-center gap-2"> </div>
<slot name="right-header" class="flex items-center gap-2" /> <div class="flex items-center gap-2">
</div> <slot name="right-header" class="flex items-center gap-2" />
</header> </div>
</header>
</slot>
</Teleport> </Teleport>
</template> </template>
<script setup> <script setup>