Add toggle event
parent
fe1507d480
commit
7dc10342af
|
@ -34,8 +34,12 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
toggle() {
|
||||
toggle(event) {
|
||||
this.d_collapsed = !this.d_collapsed;
|
||||
this.$emit('toggle', {
|
||||
originalEvent: event,
|
||||
value: this.d_collapsed
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,8 +31,12 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
toggle() {
|
||||
toggle(event) {
|
||||
this.d_collapsed = !this.d_collapsed;
|
||||
this.$emit('toggle', {
|
||||
originalEvent: event,
|
||||
value: this.d_collapsed
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue