fix(components): [el-menu] menu-collapse onLeave lose done (#4517)

This commit is contained in:
啝裳 2021-11-24 17:31:18 +08:00 committed by GitHub
parent adc85619e0
commit 23958e4a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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