timeline: v-for on photo component

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-04-12 15:19:29 -07:00
parent 3bf221a663
commit 805a131c4a
2 changed files with 68 additions and 69 deletions

View File

@ -61,7 +61,8 @@
</div>
</div>
<div
<Photo
class="photo"
v-else
v-for="photo of item.photos"
:key="photo.key"
@ -70,9 +71,6 @@
width: `${photo.dispW}px`,
transform: `translate(${photo.dispX}px, ${photo.dispY}px)`,
}"
class="photo"
>
<Photo
:data="photo"
:day="item.day"
@select="selectionManager.selectPhoto"
@ -81,7 +79,6 @@
@touchend="selectionManager.touchendPhoto(photo, $event, index)"
@touchmove="selectionManager.touchmovePhoto(photo, $event, index)"
/>
</div>
</template>
</RecycleScroller>

View File

@ -1,4 +1,5 @@
<template>
<div class="p-outer-super">
<div
class="p-outer fill-block"
:class="{
@ -61,6 +62,7 @@
<div class="overlay fill-block" />
</div>
</div>
</div>
</template>
<script lang="ts">