display="refreshing ? 'show' : 'hide'">
<template v-if="hasMore">
<loading-indicator class="font-gray" style="width: 40rpx; height: 40rpx;"></loading-indicator>
<text class="font-gray font-30 ml-20">{{ refreshing ? '加载中' : '下拉加载更多' }}</text>
</template>
<text v-else class="font-gray font-30">没有更多历史消息</text>
</refresh>
<cell :keep-scroll-position="true" v-for="(msg, index) in msgList" :key="msg._id" :ref="'msg-' + msg._id">
<!-- <view v-if="msgList.length < 5" @appear="loadMore"></view> -->
<imMsgItem :msg="msg" :active="msg._id == showMsgById" :aboutMsg="msg.about_msg_id"
@retriesSendMsg="retriesSendMsg" @showMsgById="showMsgById" @previewImage="previewImages"
@showControl="showControl" @reEdit="reEdit"></imMsgItem>
</cell>
<!-- <cell v-for="(item,index) in msgList" :key="index">{{ item.body }}</cell> -->
<cell ref="chatBodyBottomRef" :recycle="false" :keep-scroll-position="true" :render-reverse-position="true">
</cell>
</list>
1 个回复
喜欢技术的前端 - QQ---445849201
你这个例子跑不起来,可以提供完整的吗