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

102
Views
Botones vinculados en un bucle

Quiero hacer que cuando se haga clic en un botón, aparezca un cuadro de diálogo asociado solo con este botón. Ahora, cuando se hace clic, se abren todos a la vez.

 <v-col v-for="(goal, i) in goals" :key="i"> <v-card> <v-card-actions> <v-btn @click="more = true"> Подробнее </v-btn> </v-card-actions> </v-card> <v-dialog v-model="more"> <v-card> <v-btn @click="more = false"> Agree </v-btn> </v-card> </v-dialog> </v-col> <script> export default { data: () => ({ more: false, }), } </script>

haga clic en botón

4 diálogos

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Intente reemplazar true/false con id o index :

 data: () => ({ goalId: null, }), <v-col v-for="(goal, i) in goals" :key="i"> <v-card> <v-card-actions> <v-btn @click="goalId = i" //or goal.id > Подробнее </v-btn> </v-card-actions> </v-card> <v-dialog v-model="more" v-if="moreId === i" > <v-card> <v-btn @click="goalId = null" > Agree </v-btn> </v-card> </v-dialog> </v-col>
about 4 years ago · Juan Pablo Isaza 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!