From 4673f942e7dc64853bdad047da4197a1e246329c Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 25 Nov 2024 14:19:24 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/style.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/core/core-frontend/src/utils/style.ts b/core/core-frontend/src/utils/style.ts index 7d1b7d6ad5..2ba045395a 100644 --- a/core/core-frontend/src/utils/style.ts +++ b/core/core-frontend/src/utils/style.ts @@ -294,18 +294,10 @@ export function groupStyleRevertBatch(groupComponent, parentStyle) { export function tabInnerStyleRevert(tabOuterComponent) { const parentStyle = { width: tabOuterComponent.style.width, - height: tabOuterComponent.style.height - tabOuterComponent.style.showTabTitle ? 46 : 0 + height: tabOuterComponent.style.height - (tabOuterComponent.style.showTabTitle ? 46 : 0) } tabOuterComponent.propValue.forEach(tabItem => { tabItem.componentData.forEach(tabComponent => { - console.log( - '====test===inner-width---' + - tabComponent.style.width + - '---height---' + - tabComponent.style.height + - '---' + - JSON.stringify(parentStyle) - ) groupStyleRevert(tabComponent, parentStyle) }) }) @@ -336,6 +328,6 @@ export function dataVTabComponentAdd(innerComponent, parentComponent) { innerComponent.style.left = 0 const parentStyleAdaptor = { ...parentComponent.style } // 去掉tab头部高度 - parentStyleAdaptor.height = parentStyleAdaptor.height - parentComponent.showTabTitle ? 46 : 0 + parentStyleAdaptor.height = parentStyleAdaptor.height - (parentComponent.showTabTitle ? 46 : 0) groupStyleRevert(innerComponent, parentStyleAdaptor) }