From b6b4844886623d18fc8a90ca83244f881fda60a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Luis=20Pereira?= Date: Sun, 3 Jul 2022 17:04:59 -0300 Subject: [PATCH] Add thumbnail navigator to image modal --- src/components/Gallery/GalleryImage.vue | 32 ++++------- src/components/Gallery/GalleryThumbnail.vue | 4 +- .../Gallery/GalleryThumbnailList.vue | 33 ++++++++++++ src/components/Gallery/ImageViewer.vue | 53 +++++++++++++------ 4 files changed, 83 insertions(+), 39 deletions(-) create mode 100644 src/components/Gallery/GalleryThumbnailList.vue diff --git a/src/components/Gallery/GalleryImage.vue b/src/components/Gallery/GalleryImage.vue index 3b8a84e..9ae0543 100644 --- a/src/components/Gallery/GalleryImage.vue +++ b/src/components/Gallery/GalleryImage.vue @@ -8,7 +8,7 @@ print:hidden bg-white dark:bg-slate-800 - dark:border-slate-800" + dark:border-slate-600" >
-
-
- -
-
+ import { ref, computed, watch } from 'vue' +import GalleryThumbnailList from './GalleryThumbnailList.vue'; const props = defineProps({ images: { diff --git a/src/components/Gallery/GalleryThumbnail.vue b/src/components/Gallery/GalleryThumbnail.vue index 71080d5..91640ba 100644 --- a/src/components/Gallery/GalleryThumbnail.vue +++ b/src/components/Gallery/GalleryThumbnail.vue @@ -1,10 +1,10 @@