搭建好管理后台模板

This commit is contained in:
RockYang
2023-04-28 14:00:36 +08:00
parent 82d097cb4a
commit 525cd524ba
5 changed files with 158 additions and 17 deletions

View File

@@ -0,0 +1,25 @@
<template>
<div class="system-config">
{{ title }}
</div>
</template>
<script>
import {defineComponent} from "vue";
export default defineComponent({
name: 'RoleList',
data() {
return {
title: "角色管理",
}
},
})
</script>
<style lang="stylus" scoped>
.system-config {
}
</style>

View File

@@ -0,0 +1,24 @@
<template>
<div class="system-config">
系统配置
</div>
</template>
<script>
import {defineComponent} from "vue";
export default defineComponent({
name: 'SysConfig',
data() {
return {
title: "系统管理",
}
},
})
</script>
<style lang="stylus" scoped>
.system-config {
}
</style>

View File

@@ -0,0 +1,24 @@
<template>
<div class="system-config">
{{ title }}
</div>
</template>
<script>
import {defineComponent} from "vue";
export default defineComponent({
name: 'UserList',
data() {
return {
title: "用户管理",
}
},
})
</script>
<style lang="stylus" scoped>
.system-config {
}
</style>

View File

@@ -0,0 +1,41 @@
<template>
<div class="welcome" :style="{ height: winHeight + 'px' }">
<h1>Chat-Plus 控制台</h1>
</div>
</template>
<script>
import {defineComponent} from "vue"
export default defineComponent({
name: 'XWelcome',
data() {
return {
winHeight: window.innerHeight,
}
},
mounted: function () {
const that = this
window.addEventListener("resize", function () {
that.winHeight = window.innerHeight
})
}
})
</script>
<style lang="stylus" scoped>
.welcome {
display: flex;
justify-content: center;
align-items: center;
color: #202020;
background-color: #282c34;
h1 {
font-size: 300%;
font-weight: bold;
letter-spacing: 0.1em;
text-shadow: -1px -1px 1px #111111, 2px 2px 1px #363636;
}
}
</style>