0👍
Add to your table @on-select-all="selectAll"
So it looks like:
<vue-good-table
@on-select-all="selectAll"
:columns="columns"
:rows="rows"
:select-options="{ enabled: true }">
</vue-good-table>
And create new method
selectAll(){
this.row.forEach(item=>{
if(item.vgtSelected){
this.$set(item,'vgtSelected', false);
}else{
this.$set(item,'vgtSelected', true);
}
},this);
}
This should solve your problem
- [Vuejs]-Trying to change image of a component in vue js but it's touching the entire row
- [Vuejs]-Pass data from child component to parent component Vue js
Source:stackexchange.com