From 1035a815d140a9f2b031dbd5e8077d95b04884ac 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 14:48:42 +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=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E6=9C=89=E7=BA=BF=E6=9D=A1?= 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 65b4b83c..ae50af12 100644 --- a/src/components/common/ChartTabs.vue +++ b/src/components/common/ChartTabs.vue @@ -176,7 +176,7 @@ export default { // 数组长度为1,即代表刚刷新界面,获取active的dom添加样式,避免原模式错位问题 // 可添加css样式,也可添加class类名,两个操作选一即可 if (window.currentChartTabList.length === 1) { - activeDom[0].style.cssText += 'border-top: 4px #046EC9 solid;border-radius: 5px 5px 0 0;transition: all linear .2s;' + 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 const clientWidth = tabDom.clientWidth