From afdeb88454e9ca6094bc80a439c30396e0bae99c Mon Sep 17 00:00:00 2001 From: mehaotian <490272692@qq.com> Date: Thu, 14 Sep 2023 18:24:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=A0=8F=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/uni-tabbar-light/uni-icons.css | 17 +++ .../uni-tabbar-light/uni-tabbar-light.uvue | 110 ++++++++++++++++++ .../uni-tabbar-light/uni-tabbar-light.vue | 94 +++++++++++++++ components/uni-tabbar-light/uniicons.ttf | Bin 0 -> 1900 bytes pages.json | 9 ++ pages/tabBar/template.uvue | 7 ++ pages/template/navbar-light/navbar-light.uvue | 49 ++++++++ 7 files changed, 286 insertions(+) create mode 100644 components/uni-tabbar-light/uni-icons.css create mode 100644 components/uni-tabbar-light/uni-tabbar-light.uvue create mode 100644 components/uni-tabbar-light/uni-tabbar-light.vue create mode 100644 components/uni-tabbar-light/uniicons.ttf create mode 100644 pages/template/navbar-light/navbar-light.uvue diff --git a/components/uni-tabbar-light/uni-icons.css b/components/uni-tabbar-light/uni-icons.css new file mode 100644 index 00000000..22c98b61 --- /dev/null +++ b/components/uni-tabbar-light/uni-icons.css @@ -0,0 +1,17 @@ +@font-face { + font-family: "UniIconsLight"; + src: url('./uniicons.ttf') format('truetype'); +} + +.uni-icons { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.uniui-back:before { + content: "\e600"; +} + diff --git a/components/uni-tabbar-light/uni-tabbar-light.uvue b/components/uni-tabbar-light/uni-tabbar-light.uvue new file mode 100644 index 00000000..11b102e3 --- /dev/null +++ b/components/uni-tabbar-light/uni-tabbar-light.uvue @@ -0,0 +1,110 @@ + + + + + \ No newline at end of file diff --git a/components/uni-tabbar-light/uni-tabbar-light.vue b/components/uni-tabbar-light/uni-tabbar-light.vue new file mode 100644 index 00000000..5efd192f --- /dev/null +++ b/components/uni-tabbar-light/uni-tabbar-light.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/components/uni-tabbar-light/uniicons.ttf b/components/uni-tabbar-light/uniicons.ttf new file mode 100644 index 0000000000000000000000000000000000000000..e370efe839a69693e9ee79483f7bbca34f49dcfd GIT binary patch literal 1900 zcmd^A+iM(E9RAK+vL;)Tw23y@mqAPuwC<)0wKb$7#wHIfC`rw}6m)hnv%BqFmf1<^ zT9AMscxlaJAG8k|kb;UYJ_r_kstBP7h1Lfty+9k{)L+PFwztQ2%}KLt@2nZnPf>g-J(^U=NG67rEDzkrAJE~HL+bl5f!CnD zIdkkd`h7bI@tiCo9a6s;3%_2q89(zB)Jd%%BhaH*!+=;}R%jnMWYW>2`T;G$BwiCud6n&EB6THl-*r#Wm7(9>wNR%l((^d zHk;{%N!wu*FozG)8-cc}-Iezy#(Kp;p{>5!z9=dO+Sj%35468*UpypUly;pp{XU=S zUSQN58XMgs%-oQM_OoSC*KEP z7j9-9AZBER-&+_h@+FP zlN4%6(wHn3Wgf{FoG8FFVz{u8a9xCj3R+z2a1bHnr&_MbHhGTLRV=}$XS_|j)q8=~ zF`BfK(JbuegFUg$YnE1FYPq$VCQdV3iFG8b$l{C{DIl6r^|`FXC$@NjQg@PZ99kDp zOT8MHM3KMldAjz6^qfKV_r^<4zxQ(AI!vJnT^PdT_syu-&Z*vJV#hCgb>Ht#QO)+f MRLm59J#-o4AImB(hX4Qo literal 0 HcmV?d00001 diff --git a/pages.json b/pages.json index 6e3bf2f4..40460d47 100644 --- a/pages.json +++ b/pages.json @@ -909,6 +909,15 @@ } } + ,{ + "path" : "pages/template/navbar-light/navbar-light", + "style" : + { + "navigationBarTitleText": "自定义导航栏", + "navigationStyle": "custom" + } + + } ], "globalStyle": { "pageOrientation": "portrait", diff --git a/pages/tabBar/template.uvue b/pages/tabBar/template.uvue index 74221cef..1c337f61 100644 --- a/pages/tabBar/template.uvue +++ b/pages/tabBar/template.uvue @@ -159,6 +159,13 @@ export default { name: '划走式卡片', open: false, pages: [] as Page[], + }, + { + id: 'navbar-light', + url: 'navbar-light', + name: '自定义导航栏', + open: false, + pages: [] as Page[], }, { id: 'calendar', diff --git a/pages/template/navbar-light/navbar-light.uvue b/pages/template/navbar-light/navbar-light.uvue new file mode 100644 index 00000000..f7a80352 --- /dev/null +++ b/pages/template/navbar-light/navbar-light.uvue @@ -0,0 +1,49 @@ + + + + + -- GitLab