mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(components): [ElMenu] the collapsible menu switch will disappear (#4575)
This commit is contained in:
parent
ad3ea51b83
commit
b12e82b8fc
@ -46,10 +46,9 @@ export default defineComponent({
|
||||
el.style.overflow = 'hidden'
|
||||
},
|
||||
|
||||
onLeave(el: HTMLElement, done) {
|
||||
onLeave(el: HTMLElement) {
|
||||
addClass(el, 'horizontal-collapse-transition')
|
||||
el.style.width = `${el.dataset.scrollWidth}px`
|
||||
done()
|
||||
},
|
||||
} as BaseTransitionProps<HTMLElement> as TransitionProps
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user