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

220
Vistas
Vue3 create componentes dynamic

Hello I was testing Vue3, and I came across a situation that I didn't know how to solve for example.

I have an input component that in loop is created with data from an object, all good, but now I want to pass events to it, it is at this point where I don't know how exactly to pass these events to it. how to read this list

i am trying to create input, using a component, from a json.

Example: https://stackblitz.com/edit/vue-sdkmjl?devtoolsheight=33&file=src/App.vue

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

0

For a specific event handler, it can be specified explicitly:

<InputBase v-bind="input" v-model:value="values[input.name]" @input="input.events?.input" />

For a map of event handlers, it can be passed to v-on directive:

<InputBase v-bind="input" v-model:value="values[input.name]" v-on="input.events || {}" />
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