defines table as a child component, which can delete individual data at the time of communication between parent and child components, but there is a problem at the time of batch deletion? The
code is as follows:
<div class="edittable-con-1">
<can-edit-table refs="table" v-model="Data" :columns-list="Columns"></can-edit-table>
</div>
you can pass the row selected by the child component to the parent component through time monitoring, and the parent component can also accept the data passed by the child component
bus.$on("selections", msg => {
this.selections = msg
})
here comes the problem. How to delete the specified data?
the method I use is
this.Data.filter((d) => {
for(let i = 0; i < selections.length; iPP) {
if(d.Name === this.selections[i].Name && d.Des === this.selections[i].Des) {
break
} else {
return d
}
}
})
Filter data and delete data are not allowed at this time
how to implement