Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

338
Views
Cómo administrar una clase activa <v-tabs> en Vuetify

Tengo <v-tabs> este tipo:

 <v-tabs fixed-tabs centered align-with-title height="55" class="d-flex align-end justify-center mt-0" > <v-tabs-slider color="pink" v-show="(searchClosed && !search)"></v-tabs-slider> <v-tab :disabled="!searchClosed" :to="{ name : 'home' }">Home</v-tab> <v-tab :disabled="!searchClosed" :to="{ name : 'premiers' }">Premiers</v-tab> <v-menu offset-y bottom max-height="500" v-model="genresMenu"> <template v-slot:activator="{ on, attrs }"> <v-tab @click="genresMenu = !genresMenu" bind="attrs" v-on="on">Genres</v-tab> </template> <v-list nav rounded max-width="800" align="center" > <v-list-item v-for="genre in genres" :key="genre.id" :to="{ name : 'genre', params: { id: genre.id }}" > <v-list-item-title>{{ genre.name }}</v-list-item-title> </v-list-item> </v-list> </v-menu> </v-tabs>

La clase activa cambia entre la pestaña Inicio / Estrenos según sea necesario, pero cuando hace clic en el enlace de la pestaña Género, la clase activa se actualiza y regresa a la pestaña Inicio. ¿Puedo de alguna manera mantener activa la pestaña Género después de seguir el enlace dentro de v-list-item? Ruta de ejemplo: /género/1

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Prueba esto

 <template v-slot:activator="{ on, attrs }"> <v-tab > <div @click="genresMenu = !genresMenu" bind="attrs" v-on="on">Genre</div> </v-tab> </template>
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!