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