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 }} - + -