2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 03:07:20 +08:00

feat: 优化页面

This commit is contained in:
2026-01-13 19:00:46 +08:00
parent a7e53fb02f
commit 4dc21b5443
2 changed files with 9 additions and 4 deletions

View File

@@ -3,12 +3,14 @@ interface Props {
showFooter?: boolean
showHeader?: boolean
title?: string
flex?: boolean
}
withDefaults(defineProps<Props>(), {
showFooter: false,
showHeader: false,
title: undefined
title: undefined,
flex: false
})
</script>
@@ -21,7 +23,10 @@ withDefaults(defineProps<Props>(), {
<slot name="tabbar" />
</n-card>
</header>
<n-card class="flex-1 min-h-0 overflow-auto">
<n-card
class="flex-1 min-h-0 overflow-auto"
:content-class="flex ? 'flex flex-col min-h-0 h-full' : undefined"
>
<slot />
</n-card>
</div>

View File

@@ -24,8 +24,8 @@ const permission = ref(false)
</script>
<template>
<common-page show-footer>
<n-flex vertical :size="20" class="h-full">
<common-page show-footer flex>
<n-flex vertical :size="20" class="flex-1 min-h-0">
<path-input
v-model:path="fileStore.path"
v-model:keyword="fileStore.keyword"