From a08910464a95083adae82c8a81aa0c25bfd07631 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <1paneldev@sina.com> Date: Thu, 21 Aug 2025 14:55:55 +0800 Subject: [PATCH] feat: Optimize log file highlighting --- .../components/log/container-drawer/index.vue | 1 + .../src/components/log/container/index.vue | 2 +- .../log/custom-hightlight/index.vue | 422 ++++++++++++++---- 3 files changed, 343 insertions(+), 82 deletions(-) diff --git a/frontend/src/components/log/container-drawer/index.vue b/frontend/src/components/log/container-drawer/index.vue index 89778deffb48..e74b11d02a21 100644 --- a/frontend/src/components/log/container-drawer/index.vue +++ b/frontend/src/components/log/container-drawer/index.vue @@ -79,6 +79,7 @@ const config = ref({ const acceptParams = (props: DialogProps): void => { config.value.containerID = props.containerID; config.value.container = props.container; + logSearch.container = props.container; logVisible.value = true; if (!mobile.value) { diff --git a/frontend/src/components/log/container/index.vue b/frontend/src/components/log/container/index.vue index da061047fc0a..dbf59509bfce 100644 --- a/frontend/src/components/log/container/index.vue +++ b/frontend/src/components/log/container/index.vue @@ -32,7 +32,7 @@ class="log-item" :style="{ top: `${(startIndex + index) * logHeight}px` }" > - + diff --git a/frontend/src/components/log/custom-hightlight/index.vue b/frontend/src/components/log/custom-hightlight/index.vue index 41e756da67e3..c67667484336 100644 --- a/frontend/src/components/log/custom-hightlight/index.vue +++ b/frontend/src/components/log/custom-hightlight/index.vue @@ -1,113 +1,373 @@