refactor: 使用 Naive UI 重构后台布局与黑白双主题
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { NScrollbar } from 'naive-ui'
|
||||
/** 工作区固定标题和操作区;仅内容容器滚动,不向 document 传播滚动。 */
|
||||
defineProps<{ split?: boolean }>()
|
||||
</script>
|
||||
<template>
|
||||
<section class="workspace-page">
|
||||
<header v-if="$slots.header" class="workspace-heading"><slot name="header" /></header>
|
||||
<div v-if="split" class="workspace-split"><slot /></div>
|
||||
<NScrollbar v-else class="workspace-scroll" content-class="workspace-scroll-content"><slot /></NScrollbar>
|
||||
</section>
|
||||
</template>
|
||||
Reference in New Issue
Block a user