From af8e4595056a1588f382db35c534129e1f695db1 Mon Sep 17 00:00:00 2001 From: hdx Date: Tue, 19 Sep 2023 10:54:22 +0800 Subject: [PATCH] =?UTF-8?q?custom-tab-bar:=20=E8=B0=83=E6=95=B4=E7=AE=AD?= =?UTF-8?q?=E5=A4=B4=E6=95=88=E6=9E=9C=EF=BC=8C=E5=90=88=E5=B9=B6=E4=B8=BA?= =?UTF-8?q?1=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 - pages/tabBar/template.uvue | 12 +- .../custom-tab-bar/custom-tab-bar.uvue | 94 +++++++-- .../custom-tab-bar2/custom-tab-bar2-tab1.uvue | 60 ------ .../custom-tab-bar2/custom-tab-bar2-tab2.uvue | 24 --- .../custom-tab-bar2/custom-tab-bar2.uvue | 183 ------------------ 6 files changed, 75 insertions(+), 304 deletions(-) delete mode 100644 pages/template/custom-tab-bar2/custom-tab-bar2-tab1.uvue delete mode 100644 pages/template/custom-tab-bar2/custom-tab-bar2-tab2.uvue delete mode 100644 pages/template/custom-tab-bar2/custom-tab-bar2.uvue diff --git a/pages.json b/pages.json index dab0a970..a5993bb2 100644 --- a/pages.json +++ b/pages.json @@ -933,12 +933,6 @@ "style": { "navigationBarTitleText": "自定义TabBar" } - }, - { - "path": "pages/template/custom-tab-bar2/custom-tab-bar2", - "style": { - "navigationBarTitleText": "自定义TabBar2" - } } ], "globalStyle": { diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue index 6f27a4a1..ddd37f78 100644 --- a/pages/tabBar/template.uvue +++ b/pages/tabBar/template.uvue @@ -172,16 +172,8 @@ export default { url: 'custom-tab-bar', name: '自定义TabBar', open: false, - pages: [ - { - name: '滚动切换图标', - url:'custom-tab-bar' - }, - { - name: '凹口', - url:'custom-tab-bar2' - }, - ] as Page[], + enable: true, + pages: [] as Page[], }, { id: 'calendar', diff --git a/pages/template/custom-tab-bar/custom-tab-bar.uvue b/pages/template/custom-tab-bar/custom-tab-bar.uvue index 3c1b7b6e..86539345 100644 --- a/pages/template/custom-tab-bar/custom-tab-bar.uvue +++ b/pages/template/custom-tab-bar/custom-tab-bar.uvue @@ -1,15 +1,26 @@