From 4ac8bc7bd25fb067a56e37f13e7defceebb150d2 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 21 Aug 2025 17:26:52 +0800 Subject: [PATCH] feat: Optimize log file highlighting (#10093) --- .../components/log/container-drawer/index.vue | 1 + .../src/components/log/container/index.vue | 2 +- .../log/custom-hightlight/index.vue | 426 ++++++++++++++---- 3 files changed, 345 insertions(+), 84 deletions(-) diff --git a/frontend/src/components/log/container-drawer/index.vue b/frontend/src/components/log/container-drawer/index.vue index 89778deff..e74b11d02 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 da061047f..dbf59509b 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 41e756da6..c67667484 100644 --- a/frontend/src/components/log/custom-hightlight/index.vue +++ b/frontend/src/components/log/custom-hightlight/index.vue @@ -1,113 +1,373 @@