|
@@ -47,13 +47,16 @@
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- 目录大纲 -->
|
|
|
|
|
- <div class="flex-1 overflow-hidden" v-show="activeMenu === 'file'">
|
|
|
|
|
- <Hierarchy />
|
|
|
|
|
- </div>
|
|
|
|
|
<!-- 控件库 -->
|
|
<!-- 控件库 -->
|
|
|
<div class="flex-1 overflow-hidden" v-show="activeMenu === 'widget'">
|
|
<div class="flex-1 overflow-hidden" v-show="activeMenu === 'widget'">
|
|
|
- <Libary />
|
|
|
|
|
|
|
+ <SplitterCollapse>
|
|
|
|
|
+ <SplitterCollapseItem title="控件">
|
|
|
|
|
+ <Libary />
|
|
|
|
|
+ </SplitterCollapseItem>
|
|
|
|
|
+ <SplitterCollapseItem title="图层">
|
|
|
|
|
+ <Hierarchy />
|
|
|
|
|
+ </SplitterCollapseItem>
|
|
|
|
|
+ </SplitterCollapse>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 资源管理 -->
|
|
<!-- 资源管理 -->
|
|
|
<div class="flex-1 overflow-hidden" v-show="activeMenu === 'resource'">
|
|
<div class="flex-1 overflow-hidden" v-show="activeMenu === 'resource'">
|
|
@@ -76,7 +79,8 @@ import { ref, h, computed } from 'vue'
|
|
|
import { useI18n } from 'vue-i18n'
|
|
import { useI18n } from 'vue-i18n'
|
|
|
import { useAppStore } from '@/store/modules/app'
|
|
import { useAppStore } from '@/store/modules/app'
|
|
|
|
|
|
|
|
-import { LuFiles, LuBoxes, LuSettings2, LuInbox, LuCode2 } from 'vue-icons-plus/lu'
|
|
|
|
|
|
|
+import { SplitterCollapse, SplitterCollapseItem } from '@/components/SplitterCollapse'
|
|
|
|
|
+import { LuBoxes, LuSettings2, LuInbox, LuCode2 } from 'vue-icons-plus/lu'
|
|
|
import Hierarchy from './Hierarchy.vue'
|
|
import Hierarchy from './Hierarchy.vue'
|
|
|
import Libary from './Libary.vue'
|
|
import Libary from './Libary.vue'
|
|
|
import Schema from './Schema.vue'
|
|
import Schema from './Schema.vue'
|
|
@@ -89,11 +93,6 @@ const { t } = useI18n()
|
|
|
const sidebarMenu = computed(() => {
|
|
const sidebarMenu = computed(() => {
|
|
|
console.log(appStore.lang)
|
|
console.log(appStore.lang)
|
|
|
return [
|
|
return [
|
|
|
- {
|
|
|
|
|
- key: 'file',
|
|
|
|
|
- title: h('span', null, h(LuFiles)),
|
|
|
|
|
- tooltip: t('directory')
|
|
|
|
|
- },
|
|
|
|
|
{
|
|
{
|
|
|
key: 'widget',
|
|
key: 'widget',
|
|
|
title: h('span', null, h(LuBoxes)),
|
|
title: h('span', null, h(LuBoxes)),
|
|
@@ -117,7 +116,7 @@ const sidebarMenu = computed(() => {
|
|
|
]
|
|
]
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
-const activeMenu = ref('file')
|
|
|
|
|
|
|
+const activeMenu = ref('widget')
|
|
|
const appStore = useAppStore()
|
|
const appStore = useAppStore()
|
|
|
const showPopoverMenu = ref(false)
|
|
const showPopoverMenu = ref(false)
|
|
|
</script>
|
|
</script>
|