Commit 278d7adf authored by Luna Riegel's avatar Luna Riegel
Browse files

Use VCSExpansionPanel for object library

parent 24f01efd
...@@ -6,9 +6,8 @@ ...@@ -6,9 +6,8 @@
<span>Die Objektbibliothek.</span> <span>Die Objektbibliothek.</span>
</template> </template>
<template #default> <template #default>
<v-expansion-panels v-for = "(subcats, categoryName) in objLib" :key="categoryName"> <v-expansion-panels>
<v-expansion-panel > <VcsExpansionPanel v-for = "(subcats, categoryName) in objLib" :key="categoryName" :heading="categoryName">
<v-expansion-panel-title class="text-h5">{{ categoryName }}</v-expansion-panel-title>
<v-container v-for="(entries, subCategory) in subcats" :key = "subCategory" class=" py-1 px-1 border-b-md" expandable> <v-container v-for="(entries, subCategory) in subcats" :key = "subCategory" class=" py-1 px-1 border-b-md" expandable>
<v-col> <v-col>
<VcsLabel class="mb-4 text-h2">{{subCategory}}</VcsLabel> <VcsLabel class="mb-4 text-h2">{{subCategory}}</VcsLabel>
...@@ -29,7 +28,7 @@ ...@@ -29,7 +28,7 @@
</v-col> </v-col>
<v-divider/> <v-divider/>
</v-container> </v-container>
</v-expansion-panel> </VcsExpansionPanel>
</v-expansion-panels> </v-expansion-panels>
</template> </template>
...@@ -113,7 +112,7 @@ import { ...@@ -113,7 +112,7 @@ import {
VcsTreeview, VcsTreeview,
VcsTreeviewTitle, VcsTreeviewTitle,
} from '@vcmap/ui'; } from '@vcmap/ui';
import {VCard, VCol, VContainer, VDialog, VForm, VRow, VSheet, VSwitch,} from 'vuetify/components'; import {VCard, VCol, VContainer, VDialog, VForm, VRow, VSheet, VSwitch, VExpansionPanels} from 'vuetify/components';
import {computed, inject, onMounted, ref} from 'vue'; import {computed, inject, onMounted, ref} from 'vue';
import {name} from '../package.json'; import {name} from '../package.json';
import * as THREE from 'three'; import * as THREE from 'three';
...@@ -403,6 +402,7 @@ function uploadModel() { ...@@ -403,6 +402,7 @@ function uploadModel() {
VContainer, VContainer,
VRow, VRow,
VCol, VCol,
VExpansionPanels,
}, },
setup() { setup() {
app = inject('vcsApp'); app = inject('vcsApp');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment