I have this array I'm using v-for to create 3 columns of info. In each column is an image. When I mouse over 1 column/image I want to change JUST that image, none of the others. How can I accomplish this with Vue?
My Vue code looks like this:
<v-row
align="center"
justify="center"
>
<v-col cols="4"
v-for='(billingPlan, index) in billingPlans.basicPlans'
:key='billingPlan.id'
>
<v-img
:src="whichRose"
@mouseenter="switchRose(index)"
>
</v-col>
</v-row>
I'm thinking I can somehow target the image by its index, but I'm not having any luck.
Any ideas on what I can do?
whichRosecoming from? If that is a computed property, you should be able to dynamically change what that property evaluates to.whichRoseis a data element, butswitchRoseis a computed property that I'm trying to use to updatewhichRoseif that makes sensewhichRosedata element will be the same for all columns.