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

167
Vistas
Getting v-model from a quasar file picker field

In a vue app using quasar, I have three file picker fields, and when one of those fields change, I want to call a specific function. I want to be able to pass the v-model as a variable into the function so I can update the v-model using the function.

See more problem description in the onSelected function description.

For example, I may want to bind the v-model of whatever field was changed to a new variable. So how would I tell the function what v-model was passed at the @change event?

<q-file
      v-model="fieldOne"
      @change="onSelected()"
></q-file>
<q-file
      v-model="fieldTwo"
      @change="onSelected()"
></q-file>
<q-file
      v-model="fieldThree"
      @change="onSelected()"
></q-file>

 function onSelected(event) {
  // I would like to update the v-model of the field that was 
  // subject to the @change event. event.target.value doesn't 
  // work. How to I work with the specific v-model that 
  // triggered 
  //the @change event?
  
}
about 4 years ago · Juan Pablo Isaza
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