feat(album): add thumbnails and AlbumViewer.vue
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
<div class="image-grid">
|
||||
<div v-for="(url, index) in displayedImages"
|
||||
:key="index"
|
||||
class="image-wrapper">
|
||||
class="image-wrapper"
|
||||
@click="$emit('photo-click', index)">
|
||||
<img :src="url"
|
||||
:alt="t('creator.sections.album.image')"
|
||||
class="image"/>
|
||||
@@ -14,6 +15,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
// Add 'photo-click' to emits
|
||||
const emit = defineEmits(['photo-click']);
|
||||
|
||||
import { computed, ref, onMounted, onUnmounted } from "vue";
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
@@ -131,4 +135,4 @@ const gridColumns = computed(() => {
|
||||
}
|
||||
}
|
||||
}
|
||||
</i18n>
|
||||
</i18n>
|
||||
Reference in New Issue
Block a user