Forum

Vue3EasyDataTable +...
 
Notifications
Clear all

Vue3EasyDataTable + vue-select + for loop bind

1 Posty
1 Users
0 Likes
315 Widok
0
Topic starter

error: v-model cannot be used on v-for or v-slot scope variables because they are not writable.

1 Answer
0
Topic starter
<Vue3EasyDataTable
                    v-else
                    :headers="headers"
                    :items="companiesTable"
                >
                    <template #item-www="{ www }">
                        <a :href="www">{{ www }}</a>
                    </template>
                    <template #item-industries="{ industries,id }">
                        <v-select
                            :options="this.industries"
                            v-model="companiesTable.find((x=>x.id === id)).industries"
                            label="name"
                            multiple
                        >
                        </v-select>
                    </template>
                </Vue3EasyDataTable>

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: