From 6e3448582b37e13b7240506008d50e4cd4f48a5b Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Wed, 3 Jan 2024 17:09:44 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/fly-content/fly-content.vue | 11 +++++ src/components/fly-navbar/README.md | 3 ++ src/components/fly-navbar/fly-navbar.vue | 53 ++++++++++++++++++++++ src/pages.json | 7 +++ src/pages/index/index.vue | 4 +- src/pages/my/index.vue | 39 ++++++++++++++++ 6 files changed, 115 insertions(+), 2 deletions(-) create mode 100644 src/components/fly-content/fly-content.vue create mode 100644 src/components/fly-navbar/README.md create mode 100644 src/components/fly-navbar/fly-navbar.vue create mode 100644 src/pages/my/index.vue diff --git a/src/components/fly-content/fly-content.vue b/src/components/fly-content/fly-content.vue new file mode 100644 index 0000000..66d5a0a --- /dev/null +++ b/src/components/fly-content/fly-content.vue @@ -0,0 +1,11 @@ + + + diff --git a/src/components/fly-navbar/README.md b/src/components/fly-navbar/README.md new file mode 100644 index 0000000..cd5cf97 --- /dev/null +++ b/src/components/fly-navbar/README.md @@ -0,0 +1,3 @@ +# fly-navbar + +建议本导航栏组件在设置 `"navigationStyle": "custom"` 的页面使用,目前支持微信小程序的页面滚动动画。 diff --git a/src/components/fly-navbar/fly-navbar.vue b/src/components/fly-navbar/fly-navbar.vue new file mode 100644 index 0000000..3048832 --- /dev/null +++ b/src/components/fly-navbar/fly-navbar.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/src/pages.json b/src/pages.json index 3179fc8..de10049 100644 --- a/src/pages.json +++ b/src/pages.json @@ -5,6 +5,13 @@ "style": { "navigationBarTitleText": "我才是标题" } + }, + { + "path": "pages/my/index", + "style": { + "navigationBarTitleText": "我的", + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 10a3640..8c668e0 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -12,10 +12,10 @@ Demo Count: {{ countStore.count }} - + -