Files
dvcp_v2_webapp/examples/views/appEntry.vue

38 lines
665 B
Vue
Raw Normal View History

2021-12-14 18:36:19 +08:00
<template>
<section class="appEntry">
2022-07-27 10:24:38 +08:00
<component v-if="app" :is="app" :instance="$request" :dict="$dict" :permissions="$permissions"/>
2021-12-14 18:36:19 +08:00
<ai-empty v-else>无法找到应用文件</ai-empty>
</section>
</template>
<script>
import {mapState} from "vuex";
2021-12-14 18:36:19 +08:00
export default {
name: "appEntry",
label: "应用库-应用",
computed: {
...mapState(['apps']),
2021-12-14 18:36:19 +08:00
app() {
let app = this.apps.find(e => e.name == this.$route.name)
return app ? app.module : ""
2021-12-14 18:36:19 +08:00
}
}
}
</script>
<style lang="scss" scoped>
.appEntry {
width: 100%;
flex: 1;
min-width: 0;
min-height: 0;
height: 100%;
2021-12-14 18:36:19 +08:00
& > * {
height: 100%;
}
}
</style>