mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +08:00
fix(components): [el-menu] menu-collapse onLeave lose done (#4517)
This commit is contained in:
parent
adc85619e0
commit
23958e4a75
@ -46,9 +46,10 @@ export default defineComponent({
|
||||
el.style.overflow = 'hidden'
|
||||
},
|
||||
|
||||
onLeave(el: HTMLElement) {
|
||||
onLeave(el: HTMLElement, done) {
|
||||
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