From c9acfb452988a23de3f4441c97449651520634d4 Mon Sep 17 00:00:00 2001 From: yuan Date: Tue, 2 Jan 2024 15:39:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8index=20=E9=A1=B5=E9=9D=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20scroll=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 2 + src/pages/index/index.config.ts | 2 + src/pages/index/index.scss | 24 +++++----- src/pages/index/index.vue | 82 ++++++++++++++++++++++----------- 4 files changed, 72 insertions(+), 38 deletions(-) diff --git a/components.d.ts b/components.d.ts index cc4670d..09b69e7 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,6 +7,7 @@ export {} declare module 'vue' { export interface GlobalComponents { + BackgroundBasic: typeof import('./src/components/background-basic/index.vue')['default'] Contact: typeof import('./src/components/contact/index.vue')['default'] ContactForm: typeof import('./src/components/contact-form/index.vue')['default'] Counter: typeof import('./src/components/Counter.vue')['default'] @@ -22,6 +23,7 @@ declare module 'vue' { NutForm: typeof import('@nutui/nutui-taro')['Form'] NutFormItem: typeof import('@nutui/nutui-taro')['FormItem'] NutInput: typeof import('@nutui/nutui-taro')['Input'] + NutNavbar: typeof import('@nutui/nutui-taro')['Navbar'] NutSearchbar: typeof import('@nutui/nutui-taro')['Searchbar'] NutSwitch: typeof import('@nutui/nutui-taro')['Switch'] } diff --git a/src/pages/index/index.config.ts b/src/pages/index/index.config.ts index b6d4dab..f64d3fc 100644 --- a/src/pages/index/index.config.ts +++ b/src/pages/index/index.config.ts @@ -1,4 +1,6 @@ export default definePageConfig({ navigationBarTitleText: '', + navigationStyle: 'custom', + disableScroll: true, usingComponents: {} }) diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss index ccb1e85..1251ddd 100644 --- a/src/pages/index/index.scss +++ b/src/pages/index/index.scss @@ -1,12 +1,14 @@ -.content{ - font-family: "Avenir", Helvetica, Arial, sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - text-align: center; - margin-top: 40%; - padding: 0 20px; +page { + height: 100%; } -.nut-cell{ - display: flex; - justify-content: space-between; -} \ No newline at end of file + +.nut-navbar { + background: transparent; +} + +.scroll { + flex: 1; + overflow: scroll; +} + + diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 560780c..6774232 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,6 +1,7 @@ + + +