Files
ZDXSGYHT/library/layouts/VabLayoutVertical/index.vue
liangjian 836c61ac55 @@@@@@
2026-01-27 16:32:15 +08:00

62 lines
1.1 KiB
Vue

<template>
<div
class="vab-layout-vertical"
:class="{
fixed: fixedHeader,
'no-tabs-bar': !showTabs,
}"
>
<vab-side-bar />
<div v-if="device === 'mobile' && !collapse" class="vab-modal" @click="foldSideBar"></div>
<div
class="vab-main"
:class="{
'is-collapse-main': collapse,
'is-no-tabs': !showTabs,
}"
>
<div
class="vab-layout-header"
:class="{
'fixed-header': fixedHeader,
'is-no-tabs': !showTabs,
}"
>
<vab-nav />
<vab-tabs v-show="showTabs" />
</div>
<vab-app-main />
</div>
</div>
</template>
<script lang="ts" setup>
import { useSettingsStore } from '/@/store/modules/settings'
defineOptions({
name: 'VabLayoutVertical',
})
defineProps({
collapse: {
type: Boolean,
default: false,
},
fixedHeader: {
type: Boolean,
default: true,
},
showTabs: {
type: Boolean,
default: true,
},
device: {
type: String,
default: 'desktop',
},
})
const settingsStore = useSettingsStore()
const { foldSideBar } = settingsStore
</script>