退出重新进入页面,列表滚动无异常,删除之后,数组减少;接受到回调之后添加之前删除的数据;重新渲染列表。滑动无法触发
<view class="scroll-box" v-if="conversationList.length">
<view class="uni-list margintop-bar">
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item :ref="'swipeAction' + item.conversationID"
v-for="(item, index) in conversationList" :right-options="item.actionOptions"
:key="item.conversationID" @click="handleItemClick($event, index)">
<view @tap="handleRoute(item.conversationID)">
<TUI-conversation-item :data-type="item.type" :conversation="item" :key="item.conversationID+item.lastMessage.lastTime"></TUI-conversation-item>
</view>
</uni-swipe-action-item>
</uni-swipe-action>
</view>
</view>
onConversationListUpdated(event) {
this.conversationList=JSON.parse(JSON.stringify(event.data))
},
1 个回复
YUANRJ
什么平台?升级下版本试试,如还有问题,麻烦提供下测试工程。