最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Vuetify bottom nav cutting content - Stack Overflow

programmeradmin2浏览0评论

My bottom nav is cutting the content in my body, I've tried to put if fixed but then it just goes right down to the bottom

This is how it looks right now:

This is my code, I can't add the code to this question because it won't show u, but this is my bottom nav code

This is how the code looks:

My bottom nav is cutting the content in my body, I've tried to put if fixed but then it just goes right down to the bottom

This is how it looks right now:

This is my code, I can't add the code to this question because it won't show u, but this is my bottom nav code

This is how the code looks:

Share Improve this question edited Dec 5, 2018 at 19:31 Iuri Siva 299 bronze badges asked Dec 5, 2018 at 18:32 DevonteZ STLDevonteZ STL 1331 silver badge5 bronze badges 1
  • 2 I think you should add app property? <v-bottom-nav app> – Traxo Commented Dec 5, 2018 at 20:19
Add a comment  | 

2 Answers 2

Reset to default 11

Wrap your content into <v-content></v-content> element and add app property to <v-bottom-nav> as mentioned by Traxo.
Working example: https://codepen.io/anon/pen/YRoexV

Since the release v2.3.0 https://github.com/vuetifyjs/vuetify/releases/tag/v2.3.0

v-content is now v-main, so the new way to structure this is something like this:

App.vue:

<template>
  <v-app>

    <AppBar/>

    <v-main>
      <router-view></router-view>
    </v-main>

    <BottomNavigation/>

  </v-app>
</template>

BottomNavigation.vue:

<template>
  <v-container>
  <v-bottom-navigation
    fixed
    app
  >
    <v-btn>
      <span>Recents</span>
      <v-icon>mdi-history</v-icon>
    </v-btn>

    <v-btn>
      <span>Favorites</span>
      <v-icon>mdi-heart</v-icon>
    </v-btn>

    <v-btn>
      <span>Nearby</span>
      <v-icon>mdi-map-marker</v-icon>
    </v-btn>
  </v-bottom-navigation>
  </v-container>
</template>
发布评论

评论列表(0)

  1. 暂无评论