Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

203
Visualizações
Vuetify Tabs adding Sub Tabs

I am using Vuetify tabs that work great, but I want to add a sub menu under some of the tabs. This is what I have so far but its not turning out as nice as I'd like:

<template>
  <v-container
    v-if="userLoaded"
    fluid
  >
    <v-tabs vertical>
      <v-tab
        v-for="tab in tabs"
        :key="tab.title"
      >
        {{ tab.title }}
        <v-row v-if="tab.subtabs && tab.subtabs.length">
          <v-tabs vertical>
            <v-tab
              v-for="(subtab, index) in tab.subtabs"
              :key="index"
            >
              {{ subtab.title }}
            </v-tab>
          </v-tabs>
        </v-row>
      </v-tab>

      <v-tab-item>
        <profile @updateloader="updateLoader" />
      </v-tab-item>
      <v-tab-item>
        <finance
          :user="user"
          :loading="loading"
          @updateloader="updateLoader"
        />
      </v-tab-item>
      <v-tab-item>
        <h1>Inventory goes here</h1>
      </v-tab-item>
      <v-tab-item>
        <notifications />
      </v-tab-item>
      <v-tab-item>
        <workgroup />
      </v-tab-item>
    </v-tabs>
  </v-container>
</template>

<script>
import Profile from './children/profile.vue';
import Finance from './children/finance.vue';
import Notifications from './children/notifications.vue';
import Workgroup from './children/workgroup.vue';

export default {
    name: 'Settings',
    components: { Profile, Finance, Notifications, Workgroup },
    data() {
        return {
            tabs: [{ title: 'Profile', subtabs: [{ title: 'one' }, { title: 'two' }] }, { title: 'Finance' }, { title: 'Inventory' }, { title: 'Notifications' }, { title: 'WorkGroup' }],
...//
</script>

The results look like this, which doesn't look good at all. Any tips on how to make the sub tabs appear underneath its parent?

Perhaps I am using the wrong component here?

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda