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