#137 - create single image component and add download image function

This commit is contained in:
isUnknown 2025-02-26 15:12:15 +01:00
parent 1cd55b98d6
commit 1ed7aa9c5b
5 changed files with 63 additions and 33 deletions

View file

@ -35,9 +35,7 @@
v-if="activeTrack.files.length > 1"
:activeTrack="activeTrack"
/>
<figure v-else>
<img :src="activeTrack.files[0].url" alt="" />
</figure>
<SingleImage v-else :file="activeTrack.files[0]" />
</template>
<div
v-if="isCompareModeEnabled && activeTracks.length < 2"
@ -52,10 +50,11 @@
import { ref, computed, watch, onMounted, onBeforeMount } from 'vue';
import { storeToRefs } from 'pinia';
import { usePageStore } from '../../../stores/page';
import Interactive360 from './Interactive360.vue';
import { useDialogStore } from '../../../stores/dialog';
import { useVirtualSampleStore } from '../../../stores/virtualSample';
import { useRoute } from 'vue-router';
import Interactive360 from './Interactive360.vue';
import SingleImage from './SingleImage.vue';
const route = useRoute();