[Vuejs]-V-Treeview activatable and open-on-click at the same time

2👍

watch: {
   active(to, from){
      if (!this.open.includes(to)){
         this.open.push(to);
      }  
   }
},

2👍

clear open-on-click props, add a ref on the treeview then
call

@update:active="()=>{this.$refs.treeview.open.push(item[0])}"

Leave a comment