fix: 将全部业务抽屉提升为全局全高侧栏

This commit is contained in:
GouJ
2026-09-04 10:23:00 +08:00
parent 13bb6dc83b
commit f3657ea0a6
8 changed files with 68 additions and 54 deletions
+1 -5
View File
@@ -1,14 +1,10 @@
<script setup lang="ts">
import { NScrollbar } from 'naive-ui'
import { provide, ref } from 'vue'
import { workspaceHostKey } from './workspaceContext'
/** 工作区固定标题和操作区;仅内容容器滚动,不向 document 传播滚动。 */
defineProps<{ split?: boolean; compact?: boolean }>()
const host = ref<HTMLElement | null>(null)
provide(workspaceHostKey, host)
</script>
<template>
<section ref="host" class="workspace-page" :class="{ 'content-first-workspace': compact }">
<section class="workspace-page" :class="{ 'content-first-workspace': compact }">
<NScrollbar v-if="$slots.header" class="workspace-heading-scroll"
><header class="workspace-heading"><slot name="header" /></header
></NScrollbar>