提交 0b3d9beb 编写于 作者: Mosher's avatar Mosher

列表加载更多逻辑调整 --- fix1

上级 ebbcb62b
......@@ -39,7 +39,7 @@
</el-collapse-item>
</el-collapse>
</#if>
<template v-if="isScorll">
<template v-if="isScrollBar">
<div v-if="totalRecord>items.length" class="loadmore">{{ this.$t('app.commonWords.loadmore') }}</div>
<div v-else class="loadmore">{{ this.$t('app.commonWords.nomore') }}</div>
</template>
......@@ -378,9 +378,9 @@ import CodeListService from "@service/app/codelist-service";
public afterMounted () {
this.$el.addEventListener('scroll', ()=> {
if(this.$el.scrollHeight > this.$el.clientHeight) {
this.isScorll = true;
this.isScrollBar = true;
} else {
this.isScorll = false;
this.isScrollBar = false;
}
if( this.$el.scrollTop + this.$el.clientHeight >= this.$el.scrollHeight) {
this.loadMore();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册