feat: 调整为路由模式

This commit is contained in:
ChenZhaoYu
2023-02-13 12:38:44 +08:00
parent 39f718ef16
commit 951636869b
16 changed files with 316 additions and 23 deletions

View File

@@ -0,0 +1,27 @@
<script setup lang='ts'>
import { NLayout, NLayoutContent, NLayoutSider } from 'naive-ui'
</script>
<template>
<div class="h-full overflow-hidden border rounded-md shadow-md">
<NLayout class="h-full" has-sider>
<NLayoutSider
collapse-mode="width"
:collapsed-width="120"
:width="240"
show-trigger="arrow-circle"
class="p-4"
bordered
>
<span>Sider</span>
</NLayoutSider>
<NLayoutContent class="h-full">
<slot />
</NLayoutContent>
</NLayout>
</div>
</template>
<style>
</style>

View File

@@ -0,0 +1,3 @@
import Layout from './Layout.vue'
export { Layout }