Use size for height instead of rowHeight
parent
93779c2cbe
commit
f2202f919c
|
@ -35,9 +35,11 @@
|
|||
</template>
|
||||
|
||||
<template v-slot="{ item }">
|
||||
<div v-if="item.type === 0" class="head-row"
|
||||
:class="{ 'selected': item.selected}"
|
||||
>
|
||||
<div v-if="item.type === 0"
|
||||
class="head-row"
|
||||
:class="{ 'selected': item.selected }"
|
||||
:style="{ height: item.size + 'px' }">
|
||||
|
||||
<div class="super" v-if="item.super !== undefined">
|
||||
{{ item.super }}
|
||||
</div>
|
||||
|
@ -49,10 +51,11 @@
|
|||
|
||||
<div v-else
|
||||
class="photo-row"
|
||||
:style="{ height: rowHeight + 'px' }">
|
||||
:style="{ height: item.size + 'px' }">
|
||||
|
||||
<div class="photo" v-for="(photo, index) in item.photos" :key="index"
|
||||
:style="{ width: rowHeight + 'px' }">
|
||||
|
||||
<Folder v-if="photo.flag & c.FLAG_IS_FOLDER"
|
||||
:data="photo"
|
||||
:key="photo.fileid" />
|
||||
|
|
Loading…
Reference in New Issue