From 3eb6b169bf6380c99264b7224e3bca913ee9284f Mon Sep 17 00:00:00 2001 From: betavs <34408516+betavs@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:22:45 +0800 Subject: [PATCH] fix(tab-bar-item): when the split attribute is true, the style is abnormal (#2696) --- src/tab-bar-item/tab-bar-item.less | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tab-bar-item/tab-bar-item.less b/src/tab-bar-item/tab-bar-item.less index 4a813b91f..423fe3bf8 100644 --- a/src/tab-bar-item/tab-bar-item.less +++ b/src/tab-bar-item/tab-bar-item.less @@ -30,10 +30,12 @@ font-size: 32rpx; } - &--split:before { - .hairline-left(@color: @tab-bar-border-color); - top: 16rpx; - bottom: 16rpx; + &--split { + & + &::before { + .hairline-left(@color: @tab-bar-border-color); + top: 16rpx; + bottom: 16rpx; + } } &--crowded {