This commit is contained in:
yanran200730
2023-04-14 17:42:43 +08:00
parent 42eff40f48
commit e553c9c758
4 changed files with 1053 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<template>
<div class="AppGridBlock">
<component :is="currentPage" :instance="instance" :dict="dict"/>
</div>
</template>
<script>
import List from "./components/list";
import Add from "./components/add";
export default {
name: "AppGridBlock",
label: "网格区块",
props: {
instance: Function,
dict: Object,
},
computed: {
currentPage() {
return this.$route.hash == "#add" ? Add : List
}
},
data() {
return {
component: "List",
};
},
components: {Add, List},
};
</script>
<style lang="scss">
.AppGridBlock {
height: 100%;
background: #f3f6f9;
overflow: auto;
}
</style>