From 5dba7fa14bc693454dc846ad66a1aabfe3110bcf Mon Sep 17 00:00:00 2001 From: xlsea Date: Sat, 13 Jul 2024 10:56:28 +0800 Subject: [PATCH] =?UTF-8?q?style(sj=5F1.1.0-beta3):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=BB=9A=E5=8A=A8=E6=8C=89=E9=92=AE=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/iconify/streamline.json | 7 +++++ src/components/common/log-drawer.vue | 39 ++++++++++++++++++---------- 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/public/iconify/streamline.json b/public/iconify/streamline.json index 0aeb1c0..1af0001 100644 --- a/public/iconify/streamline.json +++ b/public/iconify/streamline.json @@ -12,6 +12,13 @@ "interface-user-multiple-close-geometric-human-multiple-person-up-user": { "body": "", "hidden": true + }, + "interface-arrows-vertical-scroll-point-move-scroll-vertical": { + "body": "", + "hidden": true + }, + "synchronize-disable": { + "body": "" } } } diff --git a/src/components/common/log-drawer.vue b/src/components/common/log-drawer.vue index 98c9ad2..f6af1db 100644 --- a/src/components/common/log-drawer.vue +++ b/src/components/common/log-drawer.vue @@ -110,10 +110,10 @@ async function getLogList() { .sort((a, b) => Number.parseInt(a.time_stamp, 10) - Number.parseInt(b.time_stamp, 10)) .forEach((item, index) => (item.index = index)); } + nextTick(() => { + if (isAutoScroll.value) virtualListInst.value?.scrollTo({ position: 'bottom', debounce: true }); + }); if (!finished.value && syncTime.value !== 0) { - nextTick(() => { - if (isAutoScroll.value) virtualListInst.value?.scrollTo({ position: 'bottom', debounce: true }); - }); clearTimeout(interval.value); interval.value = setTimeout(getLogList, syncTime.value * 1000); } @@ -352,10 +352,14 @@ const SnailLogComponent = defineComponent({
- - - - + + + + - + @@ -380,14 +388,10 @@ const SnailLogComponent = defineComponent({