#137 - create single image component and add download image function
This commit is contained in:
parent
1cd55b98d6
commit
1ed7aa9c5b
5 changed files with 63 additions and 33 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue