fix(components): [ElMenu] the collapsible menu switch will disappear (#4575)

This commit is contained in:
C.Y.Kun 2021-11-29 19:29:41 +08:00 committed by GitHub
parent ad3ea51b83
commit b12e82b8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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