We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b9d058 commit ae9ed9cCopy full SHA for ae9ed9c
packages/element-ui-x/src/components/Conversations/src/main.vue
@@ -193,9 +193,7 @@
193
export default {
194
name: 'ElXConversations',
195
196
- components: {
197
- ConversationsItem,
198
- },
+ components: { ConversationsItem },
199
200
props: {
201
items: {
@@ -549,6 +547,14 @@
549
547
loadMoreData() {
550
548
if (!this.loadMore) return;
551
this.loadMore();
+ // 确保loading元素可见
+ this.$nextTick(() => {
552
+ const scrollContainer = this.$refs.scrollContainer;
553
+ if (scrollContainer) {
554
+ // 滚动到底部,确保loading元素可见
555
+ scrollContainer.scrollTop = scrollContainer.scrollHeight;
556
+ }
557
+ });
558
},
559
560
scrollToTop() {
0 commit comments