mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
fix: ui layout
Signed-off-by: Kaifuny <superbiger.github@gmail.com>
This commit is contained in:
parent
37b70ee9e8
commit
bdd8831e84
@ -12,13 +12,35 @@ import {
|
|||||||
NDropdown,
|
NDropdown,
|
||||||
NWatermark,
|
NWatermark,
|
||||||
} from 'naive-ui'
|
} from 'naive-ui'
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
showWatermark: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<n-layout has-sider class="h-full">
|
<n-layout has-sider class="h-full">
|
||||||
|
<n-watermark
|
||||||
|
v-if="showWatermark"
|
||||||
|
content="大家艰苦一下,一切都会有的"
|
||||||
|
cross
|
||||||
|
fullscreen
|
||||||
|
:font-size="16"
|
||||||
|
:line-height="16"
|
||||||
|
:width="384"
|
||||||
|
:height="384"
|
||||||
|
:x-offset="12"
|
||||||
|
:y-offset="60"
|
||||||
|
:rotate="-15"
|
||||||
|
/>
|
||||||
<n-layout-sider bordered show-trigger="bar" collapse-mode="transform">
|
<n-layout-sider bordered show-trigger="bar" collapse-mode="transform">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</n-layout-sider>
|
</n-layout-sider>
|
||||||
<n-layout-content content-style="padding: 10px">
|
<n-layout-content
|
||||||
|
content-style="display: flex; flex-direction: column;width: 100%;height:100%;padding: 10px"
|
||||||
|
>
|
||||||
<n-page-header subtitle="subtitle">
|
<n-page-header subtitle="subtitle">
|
||||||
<template #header>
|
<template #header>
|
||||||
<n-breadcrumb>
|
<n-breadcrumb>
|
||||||
@ -45,21 +67,10 @@ import {
|
|||||||
</n-dropdown>
|
</n-dropdown>
|
||||||
</n-space>
|
</n-space>
|
||||||
</template>
|
</template>
|
||||||
<n-watermark
|
|
||||||
content="核心机密"
|
|
||||||
cross
|
|
||||||
selectable
|
|
||||||
:font-size="23"
|
|
||||||
:line-height="16"
|
|
||||||
:width="192"
|
|
||||||
:height="128"
|
|
||||||
:x-offset="12"
|
|
||||||
:y-offset="28"
|
|
||||||
:rotate="-15"
|
|
||||||
>
|
|
||||||
<router-view></router-view>
|
|
||||||
</n-watermark>
|
|
||||||
</n-page-header>
|
</n-page-header>
|
||||||
|
<div class="h-full">
|
||||||
|
<router-view></router-view>
|
||||||
|
</div>
|
||||||
</n-layout-content>
|
</n-layout-content>
|
||||||
</n-layout>
|
</n-layout>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user