低代码平台完成

This commit is contained in:
aixianling
2022-06-22 16:55:31 +08:00
parent 6a8fa6135a
commit 9a2fac9e6f
8 changed files with 402 additions and 12 deletions

36
tpl/AppEntry.vue Normal file
View File

@@ -0,0 +1,36 @@
<template>
<section class="@appName">
<component :is="currentPage" v-bind="$props"/>
</section>
</template>
<script>
import List from "./list";
import Add from "./add";
export default {
name: "@appName",
components: {Add, List},
label: "@name",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
currentPage() {
let {hash} = this.$route
return hash == "#add" ? Add : List
}
},
created() {
this.dict.load(@dicts)
}
}
</script>
<style lang="scss" scoped>
.@appName {
height: 100%;
}
</style>