Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

169
Vistas
Dynamically load a Vuetify component in vue 3

I am trying to load vuetify components dynamically in a vue 3 project using the following code:

<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>

Trying this I get no errors, using v-chip component normally works fine but the second component doesn't work well and doesn't get initialized as a vuetify component instead I get the following: enter image description here I have tried using VChip or vChip but they also don't work and there is no errors at all. I also tried to use a none vuetify component, one that I have created and it loads successfully.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

object.tag should be the imported component, not a string.

// import only needed if ala-carte
import VChip from 'somewhere'
{ object: { tag: VChip } }
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda