2👍
watch: {
active(to, from){
if (!this.open.includes(to)){
this.open.push(to);
}
}
},
- [Vuejs]-Why is there an error when installing vuex?
- [Vuejs]-Why it is needed to use :key on a child component element
2👍
clear open-on-click
props, add a ref
on the treeview then
call
@update:active="()=>{this.$refs.treeview.open.push(item[0])}"
Source:stackexchange.com