[Vuejs]-V-model full array inrow but not just value of row

0👍

Content of slot v-slot:cell(selected)="row" is evaluated for each row of your table, so like this it will render one checkbox for every row in your table in each row !

You don’t need v-for in that slot, just use <b-checkbox v-model="row.item.selected" />

Think about that scoped slot as a callback – every time b-table is rendering selected column in a current row, it will call your cell(selected) slot to get a content passing a current row as an argument…

Docs

Leave a comment