1234567891011121314151617181920212223 |
- <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
- <script setup lang="ts">
- import { onBeforeUnmount, onMounted } from 'vue'
- import { useCustomLayout } from './useCustomLayout.ts'
- const { setCustomLayout } = useCustomLayout()
- onMounted(() => {
- setCustomLayout(true)
- })
- onBeforeUnmount(() => {
- setCustomLayout(false)
- })
- </script>
- <template>
- <teleport to="[data-bottom-navigation]">
- <slot />
- </teleport>
- </template>
|