forked from 1Panel-dev/MaxKB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: 优化页面结构
Showing
10 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<RouterView /> | ||
<router-view /> | ||
</template> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<template> | ||
<div class="app-layout"> | ||
<div class="app-header"> | ||
<TopBar /> | ||
</div> | ||
<div class="app-main"> | ||
<div class="main-layout h-full flex"> | ||
<div class="sidebar-container"> | ||
<Sidebar /> | ||
</div> | ||
<div class="view-container"> | ||
<AppMain /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { TopBar, Sidebar, AppMain } from '../components' | ||
</script> | ||
<style lang="scss"> | ||
.app-layout { | ||
background-color: var(--app-layout-bg-color); | ||
height: 100%; | ||
} | ||
.app-main { | ||
position: relative; | ||
height: 100%; | ||
padding: var(--app-header-height) 0 0 !important; | ||
box-sizing: border-box; | ||
overflow: auto; | ||
} | ||
.app-header { | ||
background: var(--app-header-bg-color); | ||
position: fixed; | ||
width: 100%; | ||
left: 0; | ||
top: 0; | ||
z-index: 100; | ||
} | ||
.sidebar-container { | ||
box-sizing: border-box; | ||
transition: width 0.28s; | ||
width: var(--sidebar-width); | ||
min-width: var(--sidebar-width); | ||
background-color: var(--sidebar-bg-color); | ||
} | ||
.view-container { | ||
width: calc(100% - var(--sidebar-width)); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters