Add watcher
parent
9fe4700be3
commit
e62d00331e
|
@ -38,6 +38,11 @@ export default {
|
||||||
d_collapsed: this.collapsed
|
d_collapsed: this.collapsed
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
collapsed(newValue) {
|
||||||
|
this.d_collapsed = newValue;
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toggle(event) {
|
toggle(event) {
|
||||||
this.d_collapsed = !this.d_collapsed;
|
this.d_collapsed = !this.d_collapsed;
|
||||||
|
|
Loading…
Reference in New Issue