LayoutCustomNavigation.vue 463 B

12345678910111213141516171819202122
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { onBeforeUnmount, onMounted } from 'vue'
  4. import { useCustomLayout } from './useCustomLayout.ts'
  5. const { setCustomLayout } = useCustomLayout()
  6. onMounted(() => {
  7. setCustomLayout(true)
  8. })
  9. onBeforeUnmount(() => {
  10. setCustomLayout(false)
  11. })
  12. </script>
  13. <template>
  14. <teleport to="[data-bottom-navigation]">
  15. <slot />
  16. </teleport>
  17. </template>