fix(components): [tree-v2] component activation content not displayed (#17511)

This commit is contained in:
btea 2024-07-13 17:19:34 +08:00 committed by GitHub
parent 2082247ebb
commit fe0d162193
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,7 @@ import {
getCurrentInstance,
h,
nextTick,
onActivated,
onMounted,
onUpdated,
ref,
@ -410,6 +411,10 @@ const createList = ({
}
})
onActivated(() => {
unref(windowRef).scrollTop = unref(states).scrollOffset
})
const api = {
ns,
clientSize,