2020-09-25 16:27:33 +08:00
|
|
|
<template>
|
2020-09-25 16:54:03 +08:00
|
|
|
<div class="mine" :style="{height:height + 'px'}">
|
2020-09-29 18:58:51 +08:00
|
|
|
<NavTop :type="1" style="flex-shrink:0"></NavTop>
|
2020-09-25 16:27:33 +08:00
|
|
|
<div class="body">
|
2020-09-25 16:34:20 +08:00
|
|
|
<Menu></Menu>
|
2020-09-25 16:27:33 +08:00
|
|
|
<div class="container">
|
2020-09-25 16:34:20 +08:00
|
|
|
<router-view/>
|
2020-09-25 16:27:33 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.mine{
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
.body{
|
|
|
|
display: flex;
|
2020-09-25 16:54:03 +08:00
|
|
|
width: 100%;
|
2020-09-25 16:34:20 +08:00
|
|
|
height: calc(100% - 57px);
|
2020-09-25 16:27:33 +08:00
|
|
|
.container{
|
2020-09-25 16:34:20 +08:00
|
|
|
width: calc(100% - 171px);
|
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
2020-09-25 16:27:33 +08:00
|
|
|
background-color: #F5F5F5;
|
2020-09-25 16:34:20 +08:00
|
|
|
padding: 23px;
|
2020-09-25 16:27:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script lang="ts">
|
2020-09-25 16:54:03 +08:00
|
|
|
import { defineComponent, onMounted, ref } from 'vue';
|
2020-09-25 16:27:33 +08:00
|
|
|
import Menu from "@/components/Menu.vue";
|
|
|
|
import NavTop from "@/components/NavTop.vue"
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components:{
|
|
|
|
Menu,
|
|
|
|
NavTop
|
|
|
|
},
|
|
|
|
setup(){
|
|
|
|
console.log(1)
|
2020-09-25 16:54:03 +08:00
|
|
|
const height = ref(0);
|
|
|
|
onMounted(() => {
|
|
|
|
height.value = document.documentElement.clientHeight;
|
|
|
|
})
|
|
|
|
window.onresize=function(){
|
|
|
|
height.value = document.documentElement.clientHeight;
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
height
|
|
|
|
}
|
2020-09-25 16:27:33 +08:00
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|