提交 1dc3d837 编写于 作者: KK's avatar KK

上拉加载

上级 e1830320
......@@ -164,8 +164,8 @@
</@ibizindent>
</#if>
</div>
<div v-show="bottomLoadding && !allLoaded" class="loadding" >
<span>加载中</span>
<div v-show="!allLoaded" class="loadding" >
<span >{{$t('app.loadding')?$t('app.loadding'):"加载中"}}</span>
<ion-spinner name="dots"></ion-spinner>
</div>
</div>
......
<#assign isScroll = true>
<#assign scroll_block>
let ionScroll :any= this.$refs.ionScroll;
if(ionScroll){
let ele = await ionScroll.getScrollElement();
if(ele){
let scrollTop = ele.scrollTop;
let clientHeight = ele.clientHeight;
let scrollHeight = ele.scrollHeight;
if(scrollHeight > clientHeight && scrollTop + clientHeight === scrollHeight){
let mdctrl:any = this.$refs.mdctrl;
if(mdctrl && mdctrl.loadBottom && this.$util.isFunction(mdctrl.loadBottom)){
mdctrl.loadBottom();
}
}
}
}
</#assign>
<#ibizinclude>
../@MACRO/LAYOUTPANEL_VIEW.template.ftl
</#ibizinclude>
......
......@@ -360,6 +360,9 @@ ${P.getLogicCode(logic, "LOGIC.vue").code}
}else{
this.isShouleBackTop = false;
}
<#if scroll_block??>
${scroll_block}
</#if>
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册