Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

173
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda