This commit is contained in:
qiangyanwen 2022-08-14 17:44:09 +08:00
parent dc0c6393a7
commit 5b1b94a4d6
4 changed files with 66 additions and 56 deletions

View File

@ -80,7 +80,8 @@ export default defineComponent({
const selectedKeys = ref(['1']) const selectedKeys = ref(['1'])
const {username} = storeToRefs(useStore()) const {username} = storeToRefs(useStore())
let container = { let container = {
padding: '24px', background: '#fff', minHeight: '100%'} padding: '24px', background: '#fff', minHeight: '100%'
}
const router = useRouter() const router = useRouter()
const route = useRoute() const route = useRoute()
const goTopage = (item) => { const goTopage = (item) => {
@ -115,25 +116,31 @@ export default defineComponent({
font-weight: bold; font-weight: bold;
background: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.3);
} }
.layout { .layout {
height: 100vh; height: 100vh;
} }
.left-menu { .left-menu {
overflow-y: scroll; overflow-y: scroll;
height: 100vh; height: 100vh;
} }
.site-layout .site-layout-background { .site-layout .site-layout-background {
background: #fff; background: #fff;
} }
[data-theme='dark'] .site-layout .site-layout-background { [data-theme='dark'] .site-layout .site-layout-background {
background: #141414; background: #141414;
} }
.headers { .headers {
display: flex; display: flex;
justify-content: right; justify-content: right;
} }
.down { .down {
margin-right: 45px; margin-right: 45px;
font-size: 15px; font-size: 15px;
@ -146,12 +153,14 @@ export default defineComponent({
height: 16px; height: 16px;
background-color: rgba(0, 9, 38, 0.69); background-color: rgba(0, 9, 38, 0.69);
} }
/*定义滚动条轨道内阴影+圆角*/ /*定义滚动条轨道内阴影+圆角*/
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
border-radius: 10px; border-radius: 10px;
background-color: rgba(17, 16, 16, 1); background-color: rgba(17, 16, 16, 1);
} }
/*定义滑块内阴影+圆角*/ /*定义滑块内阴影+圆角*/
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border-radius: 10px; border-radius: 10px;

View File

@ -8,7 +8,7 @@ const useStore = defineStore("store",{
}, },
//触发动作 //触发动作
actions:{ actions:{
setuser(username){ setUser(username){
this.username = username this.username = username
} }
}, },

View File

@ -28,8 +28,6 @@
</a-form-item> </a-form-item>
</a-form> </a-form>
</div> </div>
</div> </div>
</template> </template>
@ -74,7 +72,7 @@ export default {
}; };
const store = useStore() const store = useStore()
const Check = (username) => { const Check = (username) => {
store.setuser(username) store.setUser(username)
} }
@ -138,6 +136,7 @@ export default {
padding: 0 20px; padding: 0 20px;
box-sizing: border-box; box-sizing: border-box;
} }
.text { .text {
display: flex; display: flex;
margin-top: 25px; margin-top: 25px;

View File

@ -15,6 +15,7 @@
<script setup> <script setup>
import {ref} from "vue"; import {ref} from "vue";
const option = ref({ const option = ref({
tooltip: { tooltip: {
formatter: '{a} <br/>{b} : {c}%' formatter: '{a} <br/>{b} : {c}%'
@ -69,6 +70,7 @@ const memory = ref( {
height: 300px; height: 300px;
width: 300px; width: 300px;
} }
.charts { .charts {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;