From 805a131c4ad9a77920b58d076d9e20cd67c91376 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 12 Apr 2023 15:19:29 -0700 Subject: [PATCH] timeline: v-for on photo component Signed-off-by: Varun Patil --- src/components/Timeline.vue | 23 +++---- src/components/frame/Photo.vue | 114 +++++++++++++++++---------------- 2 files changed, 68 insertions(+), 69 deletions(-) diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue index 81659f50..1c822edc 100644 --- a/src/components/Timeline.vue +++ b/src/components/Timeline.vue @@ -61,7 +61,8 @@ -
- -
+ :data="photo" + :day="item.day" + @select="selectionManager.selectPhoto" + @pointerdown="selectionManager.clickPhoto(photo, $event, index)" + @touchstart="selectionManager.touchstartPhoto(photo, $event, index)" + @touchend="selectionManager.touchendPhoto(photo, $event, index)" + @touchmove="selectionManager.touchmovePhoto(photo, $event, index)" + /> diff --git a/src/components/frame/Photo.vue b/src/components/frame/Photo.vue index f4f59c67..64d49fcf 100644 --- a/src/components/frame/Photo.vue +++ b/src/components/frame/Photo.vue @@ -1,64 +1,66 @@