You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
Vue
61 lines
1.2 KiB
Vue
1 year ago
|
<template>
|
||
|
<div class="wrapper">
|
||
|
<v-head></v-head>
|
||
|
<layout-tabs></layout-tabs>
|
||
|
|
||
|
<div class="content-box">
|
||
|
<div class="content">
|
||
|
<!-- <transition name="move" mode="out-in"> -->
|
||
|
<keep-alive :include="caches">
|
||
|
<router-view v-if="isRenderTab"></router-view>
|
||
|
</keep-alive>
|
||
|
<!-- </transition> -->
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import vHead from "./header.vue";
|
||
|
import LayoutTabs from "./LayoutTabs.vue";
|
||
|
import { mapState } from "vuex";
|
||
|
export default {
|
||
|
data() {
|
||
|
return {};
|
||
|
},
|
||
|
components: {
|
||
|
vHead,
|
||
|
LayoutTabs,
|
||
|
},
|
||
|
computed: {
|
||
|
...mapState("cache", ["caches"]),
|
||
|
...mapState(["isRenderTab"]),
|
||
|
},
|
||
|
created() {},
|
||
|
};
|
||
|
</script>
|
||
|
<style lang="less">
|
||
|
.wrapper {
|
||
|
min-width: 1366px;
|
||
|
color: #333;
|
||
|
.content-box {
|
||
|
position: absolute;
|
||
|
left: 0px;
|
||
|
right: 0;
|
||
|
top: 92px;
|
||
|
bottom: 0;
|
||
|
//padding-bottom: 30px;
|
||
|
-webkit-transition: left 0.3s ease-in-out;
|
||
|
transition: left 0.3s ease-in-out;
|
||
|
// background: @background-color-base;
|
||
|
.content {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
//padding: 10px;
|
||
|
overflow-y: auto;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</style>
|