From 9980f41646b8f5270e68590cb2cdd4b5b83f3aca Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Wed, 24 Sep 2025 16:28:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(property-marketing):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AA=92=E4=BD=93=E8=B4=A6=E5=8F=B7=E5=90=8C=E6=AD=A5=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=B1=95=E7=A4=BA=E4=B8=8E=E6=93=8D=E4=BD=9C=E5=8A=9F?= =?UTF-8?q?=E8=83=BD-=20=E5=9C=A8=E8=B4=A6=E5=8F=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E4=B8=AD=E6=96=B0=E5=A2=9E=E2=80=9C=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=8A=B6=E6=80=81=E2=80=9D=E5=88=97=EF=BC=8C=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E5=B1=95=E7=A4=BA=E5=90=8C=E6=AD=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xt-chat/xt-bubble/xt-bubbleList.vue | 8 +- .../components/account-table/table.vue | 116 +++++++++++++++++- .../media-account/account-manage/constants.ts | 6 + 3 files changed, 122 insertions(+), 8 deletions(-) diff --git a/src/components/xt-chat/xt-bubble/xt-bubbleList.vue b/src/components/xt-chat/xt-bubble/xt-bubbleList.vue index 9142b3c..9adfd90 100644 --- a/src/components/xt-chat/xt-bubble/xt-bubbleList.vue +++ b/src/components/xt-chat/xt-bubble/xt-bubbleList.vue @@ -99,7 +99,7 @@ export default defineComponent({ watch([updateCount, scrollReachEnd, listRef], () => { if (props.autoScroll && unref(listRef) && unref(scrollReachEnd)) { nextTick(() => { - console.log('自然滚动') + console.log('自然滚动'); unref(listRef)!.scrollTo({ top: unref(listRef)!.scrollHeight }); }); } @@ -111,14 +111,14 @@ export default defineComponent({ if (!props.autoScroll) return; // 首次渲染:当有内容时滚到底部一次 if (!didInitialAutoScroll.value && newLen > 0) { - console.log('首次渲染滚动到底部-----') + console.log('首次渲染滚动到底部-----'); scrollToBottom('auto'); didInitialAutoScroll.value = true; return; } // 新增内容且当前在底部:继续粘底 if (oldLen !== undefined && newLen > (oldLen ?? 0) && unref(scrollReachEnd)) { - scrollToBottom(); + scrollToBottom(); } }, { immediate: true }, @@ -142,7 +142,7 @@ export default defineComponent({ el.scrollTo({ top: el.scrollHeight, behavior }); setScrollReachEnd(true); } - }) + }); }); }; // 对外暴露能力 diff --git a/src/views/property-marketing/media-account/account-manage/components/account-table/table.vue b/src/views/property-marketing/media-account/account-manage/components/account-table/table.vue index bdd0d9a..85edefd 100644 --- a/src/views/property-marketing/media-account/account-manage/components/account-table/table.vue +++ b/src/views/property-marketing/media-account/account-manage/components/account-table/table.vue @@ -9,6 +9,7 @@ bordered class="flex-1 w-100%" rowKey="id" + :rowClassName="(record) => (isSyncing(record) || isSyncFailed(record) ? 'sync' : '')" >