From 4ef373072be59c8b7f1609e760515629f07abc0c Mon Sep 17 00:00:00 2001 From: sakurayinfei <970412446@qq.com> Date: Thu, 28 Aug 2025 17:08:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9OAnchor=E5=8F=98?= =?UTF-8?q?=E9=87=8F=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=96=87=E6=9C=AC=E7=BC=A9?= =?UTF-8?q?=E8=BF=9B=E5=93=8D=E5=BA=94=EF=BC=8C=E4=BC=98=E5=8C=96=E9=94=9A?= =?UTF-8?q?=E7=82=B9=E5=86=85=E8=BE=B9=E8=B7=9D=E8=AE=A1=E7=AE=97=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../opendesign/src/anchor/OAnchorItem.vue | 19 ++++++++----------- .../opendesign/src/anchor/style/index.scss | 2 +- .../opendesign/src/anchor/style/media.scss | 3 ++- .../opendesign/src/anchor/style/style.scss | 6 +++++- packages/opendesign/src/anchor/style/var.scss | 4 +++- 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/packages/opendesign/src/anchor/OAnchorItem.vue b/packages/opendesign/src/anchor/OAnchorItem.vue index 2e91f791..4d153688 100644 --- a/packages/opendesign/src/anchor/OAnchorItem.vue +++ b/packages/opendesign/src/anchor/OAnchorItem.vue @@ -41,16 +41,6 @@ watch( const depth = anchorItemInjection ? anchorItemInjection.depth + 1 : 1; -const style = computed(() => { - if (depth === 1) { - return {}; - } else { - return { - paddingLeft: `${12 * (depth - 1) + 8}px`, - }; - } -}); - provide(anchorItemInjectKey, { depth }); onMounted(() => { @@ -64,7 +54,14 @@ onUnmounted(() => {