From b10b8aee93db490a8faa2558a944d2f687254398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Thu, 8 Dec 2022 15:46:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DChartTabs=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=88=9D=E5=A7=8B=E5=8C=96activeBar=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=8A=96=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/ChartTabs.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/ChartTabs.vue b/src/components/common/ChartTabs.vue index d2e8c1bd..a5f08f2d 100644 --- a/src/components/common/ChartTabs.vue +++ b/src/components/common/ChartTabs.vue @@ -178,7 +178,7 @@ export default { if (window.currentChartTabList.length === 1) { // 此处操作是因为初始化时给active加border,导致tab下移,故需要将整体往上移动对应高度 const topDom = document.getElementsByClassName('el-tabs__header is-top') - topDom[0].style.cssText += 'top: -4px' + topDom[0].style.cssText += 'top: -3px' activeDom[0].style.cssText += 'height: calc(100% - 1px);border-top: 4px #046EC9 solid;border-radius: 5px 5px 0 0;transition: all linear .2s;' } else { const offsetLeft = tabDom.offsetLeft