Background: The V-for loop in the Vue + Element project generates the input and wants to bind each value of the array to the input

On the V-Model, how do I dynamically bind?

Solutions:

The array format we use here is [1,2,3…

<div v-for="(item, index, key) in arr">
       <el-input
         v-model="arr[index]"
         clearable>
       </el-input>
</div>Copy the code

ok! Done ~