mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-07 15:31:29 +08:00
更新 Footer 组件以支持动态显示导航
This commit is contained in:
@@ -386,7 +386,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
<!-- 👉 Footer -->
|
<!-- 👉 Footer -->
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<Footer v-show="!showPluginQuickAccess" />
|
<Footer :show-nav="!showPluginQuickAccess" />
|
||||||
</template>
|
</template>
|
||||||
</VerticalNavLayout>
|
</VerticalNavLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,15 @@ import { useUserStore } from '@/stores'
|
|||||||
import { filterMenusByPermission } from '@/utils/permission'
|
import { filterMenusByPermission } from '@/utils/permission'
|
||||||
import { usePWA } from '@/composables/usePWA'
|
import { usePWA } from '@/composables/usePWA'
|
||||||
|
|
||||||
|
// 是否显示的输入参数
|
||||||
|
defineProps({
|
||||||
|
showNav: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
const display = useDisplay()
|
const display = useDisplay()
|
||||||
// PWA模式检测
|
// PWA模式检测
|
||||||
const { appMode } = usePWA()
|
const { appMode } = usePWA()
|
||||||
@@ -160,7 +169,7 @@ const showDynamicButton = computed(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Teleport v-if="appMode" to="body">
|
<Teleport v-if="appMode && showNav" to="body">
|
||||||
<div class="footer-nav-container">
|
<div class="footer-nav-container">
|
||||||
<VCard elevation="3" class="footer-nav-card border" rounded="pill" :class="{ 'shift-left': showDynamicButton }">
|
<VCard elevation="3" class="footer-nav-card border" rounded="pill" :class="{ 'shift-left': showDynamicButton }">
|
||||||
<VCardText class="footer-card-content">
|
<VCardText class="footer-card-content">
|
||||||
|
|||||||
Reference in New Issue
Block a user