Files
dvcp_v2_webapp/packages/core/AppDictionary/AppDictionary.vue
aixianling 31c874e1ba refactor(core): 重构数据字典组件
- 将 AppDictionary 组件拆分为 dictList 和 DictDetail 两个子组件
-优化数据字典列表的渲染逻辑
2024-12-18 15:08:55 +08:00

33 lines
599 B
Vue

<template>
<section class="AppDictionary">
<component :is="currentPage" v-bind="$props"/>
</section>
</template>
<script>
import DictDetail from "./dictDetail";
import DictList from "@project/xumu/AppDictionary/dictList.vue";
export default {
name: "AppDictionary",
label: "数据字典",
props: {
instance: Function,
dict: Object,
permissions: Function
},
computed: {
currentPage() {
let {hash} = this.$route
return hash == "#add" ? DictDetail : DictList
}
},
}
</script>
<style lang="scss" scoped>
.AppDictionary {
height: 100%;
}
</style>