|
@@ -10,30 +10,27 @@
|
|
:collapsed-width="0"
|
|
:collapsed-width="0"
|
|
show-trigger="bar"
|
|
show-trigger="bar"
|
|
:native-scrollbar="false"
|
|
:native-scrollbar="false"
|
|
- :bordered="false"
|
|
|
|
content-style="height: 100%"
|
|
content-style="height: 100%"
|
|
class="h-full"
|
|
class="h-full"
|
|
>
|
|
>
|
|
- <h2>冷链验证报告生成系统</h2>
|
|
|
|
|
|
+ <h2 class="text-center leading-[60px]">冷链验证报告生成系统</h2>
|
|
<MenuComponent />
|
|
<MenuComponent />
|
|
</n-layout-sider>
|
|
</n-layout-sider>
|
|
</n-config-provider>
|
|
</n-config-provider>
|
|
<n-layout>
|
|
<n-layout>
|
|
- <n-layout-header>
|
|
|
|
- <n-space justify="end">
|
|
|
|
|
|
+ <n-layout-header class="h-16 px-6">
|
|
|
|
+ <n-space justify="end" align="center" class="h-full">
|
|
<n-dropdown trigger="hover" :options="options">
|
|
<n-dropdown trigger="hover" :options="options">
|
|
- <div class="leading-[60px] cursor-pointer hover:bg-[#f6f6f6] px-3">
|
|
|
|
- <span>用户名</span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <span class="cursor-pointer"> 用户名 </span>
|
|
</n-dropdown>
|
|
</n-dropdown>
|
|
</n-space>
|
|
</n-space>
|
|
</n-layout-header>
|
|
</n-layout-header>
|
|
<n-layout-content
|
|
<n-layout-content
|
|
- style="height: calc(100vh - 64px)"
|
|
|
|
- content-style="padding: 24px; height: 100%"
|
|
|
|
|
|
+ style="height: calc(100vh - 60px)"
|
|
|
|
+ content-style="padding: 24px; height: 100%; background-color: #f5f7f9"
|
|
:native-scrollbar="false"
|
|
:native-scrollbar="false"
|
|
>
|
|
>
|
|
- <n-card class="h-full">
|
|
|
|
|
|
+ <n-card :bordered="false" class="h-full">
|
|
<RouterView />
|
|
<RouterView />
|
|
</n-card>
|
|
</n-card>
|
|
</n-layout-content>
|
|
</n-layout-content>
|
|
@@ -42,7 +39,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import MenuComponent from "@/layoput/components/menu/index.vue";
|
|
|
|
|
|
+import MenuComponent from "@/layout/components/menu/index.vue";
|
|
import { darkTheme } from "naive-ui";
|
|
import { darkTheme } from "naive-ui";
|
|
|
|
|
|
const options = [
|
|
const options = [
|
|
@@ -66,9 +63,4 @@ const options = [
|
|
];
|
|
];
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
|
-h2 {
|
|
|
|
- text-align: center;
|
|
|
|
- line-height: 64px;
|
|
|
|
-}
|
|
|
|
-</style>
|
|
|
|
|
|
+<style scoped></style>
|