From 1978325f440c8fa4a24c0e067a24e34e1cf168a1 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 25 Jun 2025 17:24:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtab=E4=B8=AD=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E6=8F=90=E7=A4=BA=E9=87=8D=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/de-tabs/Component.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/core-frontend/src/custom-component/de-tabs/Component.vue b/core/core-frontend/src/custom-component/de-tabs/Component.vue index 92e0d08ae3..ad88106def 100644 --- a/core/core-frontend/src/custom-component/de-tabs/Component.vue +++ b/core/core-frontend/src/custom-component/de-tabs/Component.vue @@ -624,6 +624,13 @@ const viewToolTipsChangeDebounce = debounce(() => { viewToolTipsChange() }, 500) +watch( + () => scale.value, + () => { + viewToolTipsChangeDebounce() + } +) + watch( () => element.value, () => { @@ -670,6 +677,7 @@ const initCarousel = () => { } onMounted(() => { + document.addEventListener('visibilitychange', viewToolTipsChange) if (element.value.propValue.length > 0) { element.value.editableTabsValue = element.value.propValue[0].name } @@ -689,6 +697,7 @@ onMounted(() => { }, 1000) }) onBeforeUnmount(() => { + document.removeEventListener('visibilitychange', viewToolTipsChange) if (['canvas', 'canvasDataV', 'edit'].includes(showPosition.value) && !mobileInPc.value) { eventBus.off('onTabMoveIn-' + element.value.id, componentMoveIn) eventBus.off('onTabMoveOut-' + element.value.id, componentMoveOut)