<div class="container-body" v-for="index in 10" :key="index">
<div class="container-content"></div>
<div class="container-content">
<input :id="'Row'+index+'-input1'" type="text">
</div>
<div class="container-content">
<input :id="'Row'+index+'-input2'" type="text" class="disabled">
</div>
<div class="container-content">
<div class="custom-control custom-checkbox">
<input :id="'Row'+index+'checkbox'" class="form-check-input" type="checkbox" disabled>
</div>
</div>
<div class="container-content delete">
<img/>
</div>
</div>
There will be a total of 10 input rows generated using v-for loop.
My goal is to make Row1-input2 and Row1-checkbox enabled when the user enters a number in Row1-input1. This should not impact the other 9 rows. Additionally, clicking on the delete section should clear the entire row value.
I am uncertain about the best approach in Vue.js to accomplish this task. Should I create 10 separate data variables and store the value on keyup events, then use them to bind with :disabled? Or are there any Vue.js methods that could simplify this process?