Files
dvcp_v2_webapp/examples/components/mainContent.vue

33 lines
637 B
Vue
Raw Normal View History

<template>
<section class="mainContent">
2023-02-02 16:19:47 +08:00
<ai-nav-tab :routes="apps"/>
2022-11-18 16:39:09 +08:00
<div class="fill">
<router-view v-bind="$attrs.commonAttrs"/>
<ai-empty v-if="isHome">欢迎使用村微产品库</ai-empty>
2022-11-18 16:39:09 +08:00
</div>
</section>
</template>
<script>
import AiNavTab from "dui/packages/basic/AiNavTab";
2023-02-02 16:19:47 +08:00
import {mapState} from "vuex"
export default {
name: "mainContent",
components: {AiNavTab},
computed: {
2023-02-02 16:19:47 +08:00
...mapState(['apps']),
isHome: v => v.$route.path == '/',
},
}
</script>
<style lang="scss" scoped>
.mainContent {
height: 100%;
width: 100%;
2022-11-18 16:39:09 +08:00
display: flex;
flex-direction: column;
}
</style>