mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
perf: [el-menu] only vertical mode has transition (#3200)
This commit is contained in:
parent
d8487f29a6
commit
f03a8fe07e
@ -374,7 +374,7 @@ export default defineComponent({
|
||||
},
|
||||
}, [this.filteredSlot]), directives)
|
||||
|
||||
if (this.collapseTransition) {
|
||||
if (this.collapseTransition && this.mode === 'vertical') {
|
||||
return h(ElMenuCollapseTransition, () => menu)
|
||||
}
|
||||
return menu
|
||||
|
Loading…
Reference in New Issue
Block a user