mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix(components): [scrollbar] dynamic update scrollbar (#7050)
This commit is contained in:
parent
02530026e6
commit
17397ce9c1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user