0๐
<q-input v-model="note" label="Note" outlined></q-input>
where is you "note" data ?
If I understood correctly, I would have created something like that:
<template>
<q-table
title="Students"
:filter="filter"
:rows="studentsData"
:columns="columns"
row-key="id"
dense
selection="single"
class="puffy-shadow rounded q-pa-lg students-table"
v-model:selected="selectedStudentRow"
>
<template v-slot:body-cell-actions="props">
<q-td :props="props">
<q-btn class="action-btn" color="green" icon="mdi-pen" @click="openStudentDialog(props.row)">
</q-td>
</template>
</q-table>
<q-card>
<q-card-section>
<q-form>
<q-input v-model="selectedStudent.note" label="Note" outlined></q-input>
</q-card-section>
</q-card>
[......]
data(){
return{
studentDialog: false,
selectedStudent: {}
}
},
methods: {
openStudentDialog(student){
selectedStudent = student
studentDialog = true
}
something like that
- [Vuejs]-Hydration completed but contains mismatches โ Ascii art in a vue component
- [Vuejs]-Add custom error page for static directory in nuxt 2
Source:stackexchange.com