Authored by yyq

fix topic

... ... @@ -4,28 +4,30 @@
<div ref="eternal" class="eternal-top">
<slot name="eternalTop"></slot>
</div>
<div ref="scrollList" class="scroll-reveal-list" :style="{height: listHeight + 'px'}">
<div
v-for="(items, col) in visibleItems"
:key="col"
class="scroll-reveal-col"
:ref="'col'+ col"
:style="colStyle">
<div class="scroll-reveal-list-block">
<div ref="scrollList" class="scroll-reveal-list" :style="{height: listHeight + 'px'}">
<div
v-for="item in items"
:key="item.index"
class="scroll-reveal-item"
:ref="'items' + item.index"
:style="getItemStyle(item)">
<div v-if="!item.placeholder">
<slot name="item" :data="item"></slot>
v-for="(items, col) in visibleItems"
:key="col"
class="scroll-reveal-col"
:ref="'col'+ col"
:style="colStyle">
<div
v-for="item in items"
:key="item.index"
class="scroll-reveal-item"
:ref="'items' + item.index"
:style="getItemStyle(item)">
<div v-if="!item.placeholder">
<slot name="item" :data="item"></slot>
</div>
</div>
</div>
</div>
</div>
<div class="loading">
<p v-if="noMore" class="load-text">没有更多了</p>
<Loading v-else :size="20"></Loading>
<div class="loading">
<p v-if="noMore" class="load-text">没有更多了</p>
<Loading v-else :size="20"></Loading>
</div>
</div>
</div>
</div>
... ...
... ... @@ -176,10 +176,10 @@ export default {
this.scrollEvent({item, scrollTop, startIndex, items});
},
setListMinHeight() {
let minHeight = document.body.clientHeight - get(this.$refs, 'header.$el.offsetHeight', 0) - get(this.$refs, 'tabBlock.$el.offsetHeight', 0) - 36;
let minHeight = document.body.clientHeight - get(this.$refs, 'header.$el.offsetHeight', 0) - get(this.$refs, 'tabBlock.$el.offsetHeight', 0);
if (minHeight) {
this.$refs.scroll.$el.querySelector('.scroll-reveal-list').style.minHeight = minHeight + 'px';
this.$refs.scroll.$el.querySelector('.scroll-reveal-list-block').style.minHeight = minHeight + 'px';
}
},
updateHeadAnimateStep(scrollTop) {
... ...
{
"name": "yoho-community-web",
"version": "6.9.6-8beta4",
"version": "6.9.6-8beta5",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...