From 63a1808f98a78892ca4148302965548cb052328d Mon Sep 17 00:00:00 2001 From: Huang <596417202@qq.com> Date: Tue, 29 Nov 2022 18:01:58 +0800 Subject: [PATCH] wip-Navbar --- src/components/AppProvider/inedx.vue | 2 +- src/components/Navbar/index.vue | 15 +++++++++++++++ src/pages.json | 3 ++- src/pages/index/index.vue | 2 ++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/components/Navbar/index.vue diff --git a/src/components/AppProvider/inedx.vue b/src/components/AppProvider/inedx.vue index 3137207..3b277ec 100644 --- a/src/components/AppProvider/inedx.vue +++ b/src/components/AppProvider/inedx.vue @@ -1,6 +1,6 @@ diff --git a/src/components/Navbar/index.vue b/src/components/Navbar/index.vue new file mode 100644 index 0000000..f8da070 --- /dev/null +++ b/src/components/Navbar/index.vue @@ -0,0 +1,15 @@ + + + diff --git a/src/pages.json b/src/pages.json index b9907bd..5b8f07d 100644 --- a/src/pages.json +++ b/src/pages.json @@ -3,7 +3,8 @@ { "path": "pages/index/index", "style": { - "navigationBarTitleText": "首页" + "navigationBarTitleText": "首页", + "navigationStyle":"custom" }, "meta": { "ignoreAuth": true diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 5af38c1..728cdef 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -6,6 +6,7 @@ import { CURRENT_PLATFORM, PLATFORMS } from '@/enums/platformEnum'; import { judgePlatform } from '@/utils/platform'; import Iconify from '@/components/Iconify/index.vue'; + import Navbar from '@/components/Navbar/index.vue'; const title = ref('uni-app vue3 ts --Vite'); @@ -20,6 +21,7 @@