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

425
Views
Sección de mostrar/ocultar botón de opción de Vuetify

Estoy trabajando en botones de radio con vuetify. Tengo dos botones de radio, necesito ocultar uno cuando el otro está marcado y mostrar ambos cuando hago clic en el botón alternar Cambiar opción. La siguiente es una ilustración de mi código.

¿Qué necesito cambiar en mi código:

 <v-radio-group v-model="options"> <div v-show="isFocus" :class="{focus: isFocus, 'display-options': showAll}"> <v-radio label="radio 1" value="radio 1" @click="showOne" ></v-radio> <v-btn v-show="isActive" :class="{active: isActive}" @click="toggleChangeOption"> Change </v-btn> </div> <div v-show="isFocus" :class="{focus: isFocus, 'display-options': showAll}"> <v-radio label="radio 2" value="radio 2" @click="showTwo"></v-radio> <v-btn v-show="isActive" :class="{active: isActive}" @click="toggleChangeOption"> Change </v-btn> </div> </v-radio-group>

mi guion

 <script> export default { data () { return { options: null, isActive: false, isFocus: false, showAll: false, showOne: true showTwo: true } }, methods: { showOne(){ this.isFocus = false this.isActive = true this.showTwo = false }, showTwo(){ this.showOne = false this.showAll = true }, toggleChangeOption(){ this.showOne = true this.showTwo = true this.showAll = false } } }; </script>

el css

 <style> .active { display: block; } .display-options { display: none; } </style>
about 4 years ago · Juan Pablo Isaza
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!