0👍
It looks like you’ve copied your showHidePanel
function from the docs. That function is designed to toggle all or none of the panels. To toggle just the panel at index
use:
showHidePanel(index) {
if (this.panel.indexOf(index)) {
this.panel = this.panel.filter(i => i!=index);
} else {
this.panel.push(index);
}
},
- [Vuejs]-How do i use spread operator for multiple vuex modules?
- [Vuejs]-How to call a method in a Vue component from programmatically inserted component
Source:stackexchange.com