From 781405de1e905012cb558ff3fe59b2fd573ecd2e Mon Sep 17 00:00:00 2001 From: sakurayinfei <970412446@qq.com> Date: Fri, 24 Oct 2025 11:16:57 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix(tab):=20=E4=BF=AE=E5=A4=8Dprefix?= =?UTF-8?q?=E6=88=96suffix=E6=8F=92=E6=A7=BD=E5=A2=9E=E5=8A=A0=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E6=97=B6=EF=BC=8Ctab-navs=E6=BA=A2=E5=87=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E8=AE=A1=E7=AE=97=E7=9B=91=E5=90=AC=E5=B9=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/opendesign/src/tab/OTab.vue | 4 ++-- .../opendesign/src/tab/__demo__/TabScroll.vue | 15 +++++++++++++-- packages/opendesign/src/tab/style/style.scss | 4 +++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/packages/opendesign/src/tab/OTab.vue b/packages/opendesign/src/tab/OTab.vue index f782e893..c19655b7 100644 --- a/packages/opendesign/src/tab/OTab.vue +++ b/packages/opendesign/src/tab/OTab.vue @@ -178,7 +178,7 @@ const navScroll = (to: 'prev' | 'next') => { props.headerClass, ]" > -
+
@@ -203,7 +203,7 @@ const navScroll = (to: 'prev' | 'next') => {
-
+
diff --git a/packages/opendesign/src/tab/__demo__/TabScroll.vue b/packages/opendesign/src/tab/__demo__/TabScroll.vue index 76e44f95..ca84d164 100644 --- a/packages/opendesign/src/tab/__demo__/TabScroll.vue +++ b/packages/opendesign/src/tab/__demo__/TabScroll.vue @@ -35,7 +35,7 @@ const changeLength = () => { if (cnt % 2) { tabList[tabList.length - 1].label = 'This is a very very very very very very very very long Text'; tabList.push({ - id: 9, + id: 9..toString(), label: 'item 9', content: 'content 9', }); @@ -43,12 +43,23 @@ const changeLength = () => { tabList[tabList.length - 1].label = 'Text'; } }; +const prefix = ref(''); +const suffix = ref(''); +const addPrefixOrSuffix = () => { + prefix.value += 'prefix '; + suffix.value += 'suffix '; +};