2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 18:27:13 +08:00

feat: 初步实现compose template

This commit is contained in:
2026-01-13 23:31:37 +08:00
parent 908509e06b
commit c07a60d1c8
28 changed files with 866 additions and 47 deletions

View File

@@ -16,7 +16,7 @@ withDefaults(defineProps<Props>(), {
<template>
<app-page :show-footer="showFooter">
<div class="flex flex-col flex-1 gap-10 min-h-0">
<div class="flex flex-col flex-1 gap-10" :class="{ 'min-h-0': flex }">
<header v-if="showHeader">
<slot v-if="$slots.header" name="header" />
<n-card v-else size="small">
@@ -24,7 +24,7 @@ withDefaults(defineProps<Props>(), {
</n-card>
</header>
<n-card
class="flex-1 min-h-0 overflow-auto"
:class="flex ? 'flex-1 min-h-0' : 'flex-1'"
:content-class="flex ? 'flex flex-col min-h-0 h-full' : undefined"
>
<slot />