Files
dvcp_v2_webapp/project/beta/grid/AppGridBlock/AppGridBlock.vue

40 lines
644 B
Vue
Raw Normal View History

2022-05-27 11:51:18 +08:00
<template>
<div class="AppGridBlock">
2022-06-07 11:34:05 +08:00
<component :is="currentPage" :instance="instance" :dict="dict"/>
2022-05-27 11:51:18 +08:00
</div>
</template>
<script>
import List from "./components/list";
import Add from "./components/add";
export default {
name: "AppGridBlock",
label: "网格区块",
props: {
instance: Function,
dict: Object,
},
2022-05-31 18:33:43 +08:00
computed: {
currentPage() {
return this.$route.hash == "#add" ? Add : List
}
},
2022-05-27 11:51:18 +08:00
data() {
return {
component: "List",
};
},
2022-05-31 18:33:43 +08:00
components: {Add, List},
2022-05-27 11:51:18 +08:00
};
</script>
<style lang="scss">
.AppGridBlock {
height: 100%;
background: #f3f6f9;
overflow: auto;
}
</style>