Answer the question
In order to leave comments, you need to log in
How to reactively track the appearance of the desired key in $refs with v-for?
<div class="profile-slider-circle-void" :ref="'profile-slider-void-' + index"
:style="{height: $refs['profile-slider-void-' + index][0].clientWidth + 'px'}">
<div class="profile-slider-plus"></div>
<span>{{ $store.getters[$store.getters.LANG].Profile.add }}</span>
</div>
Answer the question
In order to leave comments, you need to log in
Hang a watch on changing the array and update the variable with your style in it (at the same time, you have to wait for the dom to be updated, more details here: https://v3.ru.vuejs.org/ru/api/instance-methods.ht... ).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question