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

309
Views
Vue3 How to pass input's value to method in @change="func(param)"?

I have an input field and I need to call the function every time when value is changed and pass the new value to the function. I couldn't find how to do it.

<template slot-scope="scope">
    <el-input
    type="text"
    :value="scope.row.name"
    v-model="queryName"
    @change="changeQueryName(scope.row.id, ???.queryName)">
    </el-input>
</template>
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can pass the $event

@change="changeQueryName($event, scope.row.id, ???.queryName)"

This is de doc HTMLElement: Event

In the changeQueryName() function you can use event.target.value

changeQueryName(event, id, queryName) {
   console.log(event.target.value)
}
over 4 years ago · Santiago Trujillo 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!