mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(Tabs): recalculate marker if items change (#2101)
This commit is contained in:
committed by
GitHub
parent
1282a5f6c0
commit
82c4926c09
@@ -164,6 +164,11 @@ export default defineComponent({
|
||||
calcMarkerSize(selectedIndex.value)
|
||||
})
|
||||
|
||||
watch(() => props.items, async () => {
|
||||
await nextTick()
|
||||
calcMarkerSize(selectedIndex.value)
|
||||
}, { deep: true })
|
||||
|
||||
onMounted(async () => {
|
||||
await nextTick()
|
||||
calcMarkerSize(selectedIndex.value)
|
||||
|
||||
Reference in New Issue
Block a user