Nahledy v detailu fotky

This commit is contained in:
Michal Kváček
2023-08-31 12:03:54 +02:00
parent ab1e20e6eb
commit 33cfca0815
4 changed files with 83 additions and 44 deletions
+6
View File
@@ -10,6 +10,10 @@ const props = defineProps({
coverPhotoUrl: {
type: String,
required: false
},
defaultTitle: {
type: String,
required: false
}
})
@@ -36,6 +40,7 @@ watch(() => props.photos, (newVal) => {
swipeable
height="auto"
infinite
v-bind="$attrs"
>
<q-carousel-slide style="padding: 0" v-for="(photo, idx) in photos" :key="photo.url" :name="photo.url">
<q-img :src="photo.url" @click="openDetail({photo, idx, allPhotos: photos})"/>
@@ -45,6 +50,7 @@ watch(() => props.photos, (newVal) => {
<PhotoDetail
v-if="photoData"
v-model="openPhotoDetail"
:default-title="defaultTitle"
:photo="photoData.photo"
:photos="photoData.allPhotos"
:opened-index="photoData.idx"