[Vuejs]-How to show expanded-item slot with costom body slot?

0👍

Due to Vue’s limited reactivity in Arrays and Objects you have to reassign those in order to work.

Try this:

methods: {
  expandItem(item) {
    this.expanded = [...this.expanded, item];
  }
},

Leave a comment