refactor(frontend): 删除无用的文件
This commit is contained in:
1 parent
dc141d19a2
commit
ced7fbe085
11 files changed
-162
No files matched your search
@@ -1,68 +0,0 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* shared/layouts/AppShell.vue
|
||||
* 通用应用壳层布局。
|
||||
*/
|
||||
|
||||
import { ref } from 'vue';
|
||||
import { PanelLeftClose, PanelLeftOpen } from 'lucide-vue-next';
|
||||
import AppHeaderTools from './AppHeaderTools.vue';
|
||||
|
||||
withDefaults(
|
||||
defineProps<{
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
collapsibleSidebar?: boolean;
|
||||
}>(),
|
||||
{
|
||||
title: '',
|
||||
subtitle: '',
|
||||
collapsibleSidebar: true,
|
||||
}
|
||||
);
|
||||
|
||||
const sidebarCollapsed = ref(false);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="page-shell flex min-h-screen flex-col">
|
||||
<header class="app-header">
|
||||
<div class="flex min-w-0 items-center gap-3">
|
||||
<button
|
||||
v-if="collapsibleSidebar"
|
||||
type="button"
|
||||
class="btn-icon-ds hidden md:inline-flex"
|
||||
:aria-label="sidebarCollapsed ? 'Expand sidebar' : 'Collapse sidebar'"
|
||||
@click="sidebarCollapsed = !sidebarCollapsed"
|
||||
>
|
||||
<PanelLeftOpen v-if="sidebarCollapsed" class="h-5 w-5" />
|
||||
<PanelLeftClose v-else class="h-5 w-5" />
|
||||
</button>
|
||||
<div class="min-w-0">
|
||||
<slot name="header-brand">
|
||||
<div v-if="title" class="truncate text-sm font-bold text-primary">{{ title }}</div>
|
||||
<div v-if="subtitle" class="truncate text-xs text-muted">{{ subtitle }}</div>
|
||||
</slot>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-3">
|
||||
<slot name="header-actions" />
|
||||
<AppHeaderTools />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="flex min-h-0 flex-1">
|
||||
<aside
|
||||
v-if="$slots.sidebar"
|
||||
class="app-sidebar hidden md:block transition-[width] duration-200"
|
||||
:class="sidebarCollapsed ? 'app-sidebar--collapsed' : ''"
|
||||
>
|
||||
<slot name="sidebar" :collapsed="sidebarCollapsed" />
|
||||
</aside>
|
||||
|
||||
<main class="min-w-0 flex-1 overflow-y-auto page-shell-mobile py-6">
|
||||
<slot />
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user