fix(components): [scrollbar] dynamic update scrollbar (#7050)

This commit is contained in:
btea 2022-04-10 14:09:12 +08:00 committed by GitHub
parent 02530026e6
commit 17397ce9c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ import {
defineComponent,
nextTick,
onMounted,
onUpdated,
provide,
reactive,
ref,
@ -184,6 +185,7 @@ export default defineComponent({
onMounted(() => {
if (!props.native) nextTick(() => update())
})
onUpdated(() => update())
return {
ns,