先提交一波

This commit is contained in:
aixianling
2023-03-27 18:03:05 +08:00
parent ac0baae856
commit e653f84891
3 changed files with 144 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<template>
<section class="AppDataModel">
<component :is="currentPage" v-bind="$props"/>
</section>
</template>
<script>
import DmAdd from "./dmAdd";
import DmList from "./dmList";
export default {
name: "AppDataModel",
components: {DmList, DmAdd},
label: "数据模型",
props: {
instance: Function,
dict: Object
},
computed: {
currentPage() {
let {hash} = this.$route
return hash == "#add" ? DmAdd : DmList
}
},
created() {
this.dict.load("detailType")
}
}
</script>
<style lang="scss" scoped>
.AppDataModel {
height: 100%;
& > section {
height: 100%;
}
}
</style>