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

161
Views
Cargue dinámicamente un componente Vuetify en vue 3

Estoy tratando de cargar componentes de vuetify dinámicamente en un proyecto vue 3 usando el siguiente código:

 <template> <v-chip>try</v-chip> <component :is="object.tag">{{ object.content }}</component> </template> <script> export default { name: 'component1', data: () => ({ object: { tag: 'v-chip', content: 'hey' }, }), } </script>

Al probar esto, no obtengo errores, el uso del componente v-chip normalmente funciona bien, pero el segundo componente no funciona bien y no se inicializa como un componente vuetify, en cambio, obtengo lo siguiente: ingrese la descripción de la imagen aquí He intentado usar VChip o vChip pero tampoco funcionan y no hay ningún error. También intenté usar un componente none vuetify, uno que he creado y se carga correctamente.

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

0

object.tag debe ser el componente importado, no una cadena.

 // import only needed if ala-carte import VChip from 'somewhere' { object: { tag: VChip } }
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!