fix: added slot in LayoutHeader to overwrite it
This commit is contained in:
parent
ba811d725a
commit
9c0a966e39
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user