Optimize Menu initialization animation
This commit is contained in:
parent
37f4b7a879
commit
e098ce3f8a
1 changed files with 1 additions and 1 deletions
|
@ -133,9 +133,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.updateActiveName();
|
|
||||||
this.openedNames = [...this.openNames];
|
this.openedNames = [...this.openNames];
|
||||||
this.updateOpened();
|
this.updateOpened();
|
||||||
|
this.$nextTick(() => this.updateActiveName());
|
||||||
this.$on('on-menu-item-select', (name) => {
|
this.$on('on-menu-item-select', (name) => {
|
||||||
this.currentActiveName = name;
|
this.currentActiveName = name;
|
||||||
this.$emit('on-select', name);
|
this.$emit('on-select', name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue