2026-06-14 10:08:46 +03:30
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<div :class="['main-with-bottom-chrome', { 'main-with-bottom-chrome--no-nav': hideMenu }]">
|
|
|
|
|
<router-view v-slot="{ Component, route }">
|
|
|
|
|
<transition :name="route.meta.transition || 'fade'">
|
|
|
|
|
<component :is="Component" class="main-with-bottom-chrome-inner" />
|
|
|
|
|
</transition>
|
|
|
|
|
</router-view>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<MobileBottomNav
|
|
|
|
|
v-if="!hideMenu"
|
|
|
|
|
:is-boursecu="isBoursecu"
|
|
|
|
|
:nav-logo="navLogo"
|
|
|
|
|
:nav-item-class="navItemClass"
|
|
|
|
|
@navigate="navigateTo"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed } from 'vue'
|
|
|
|
|
import { useConfigStore } from '@/store/configStore'
|
2026-06-16 10:32:10 +03:30
|
|
|
import { getProjectMobileNavLogo, isBoursecuProject } from '@/utils/config'
|
2026-06-14 10:08:46 +03:30
|
|
|
import { useAppNavigation } from '../composables/useAppNavigation'
|
|
|
|
|
import MobileBottomNav from './MobileBottomNav.vue'
|
|
|
|
|
|
|
|
|
|
const config = useConfigStore()
|
|
|
|
|
const isBoursecu = isBoursecuProject()
|
2026-06-16 10:32:10 +03:30
|
|
|
const navLogo = computed(() => getProjectMobileNavLogo(config.config?.avatar))
|
2026-06-14 10:08:46 +03:30
|
|
|
|
|
|
|
|
const {
|
|
|
|
|
hideMenu,
|
|
|
|
|
navItemClass,
|
|
|
|
|
navigateTo,
|
|
|
|
|
} = useAppNavigation()
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" src="./mobile-layout.less"></style>
|