@mecjos You could add a data property called durationValue to your component, and bind it to the value prop of the duration-input component like so:
<template>
<q-field dense :rules="[val => val && val.length > 0]" lazy-rules hide-bottom-space @blur="setDuration(operation.id, durationValue)">
<template v-slot:control="{ emitValue }">
<duration-input v-model="durationValue" @duration="emitValue"/>
</template>
</q-field>
</template>
<script>
export default {
data () {
return {
durationValue: ''
}
},
methods: {
setDuration (id, duration) {
// do something with id and duration
}
}
}
</script>
This way, the durationValue will always be updated when the user inputs something to the duration-input and it will also be passed to the setDuration method.