From f68fbe2e2a956bf93bf22b102cd0bba4b705feab Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 9 Aug 2024 15:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tabs/tabs.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/components/tabs/tabs.vue b/components/tabs/tabs.vue index fe9bf94..4fb5055 100644 --- a/components/tabs/tabs.vue +++ b/components/tabs/tabs.vue @@ -12,8 +12,8 @@ - - {{ item[name] || item['name']}} + + {{ item[name] || item['name']}} @@ -376,4 +376,11 @@ display: flex; justify-content: space-between; } + + .badge { + position: absolute; + top: 8rpx; + left: 80%; + transform: translateX(-80%); + }