How vue uses a specified element as a calculated value in a for loop

if there are multiple input on the page now, and I do it with element, it doesn"t affect it. Let"s make an abbreviation

.
<el-input-number class="ipt"
    v-for="(item,index) in arr"
   v-model.number="item.value"
   :controls="false"
   :precision="2"
   controls-position="right"
   :min="0">
</el-input-number>

arr=[
    {"value"="","name"="main"},
    {"value"="","name"="first"},
    {"value"="","name"="second"},
    {"value"="66","name"="a"},
    {"value"="66","name"="b"},
    {"value"="66","name"="c"}
]
The ultimate goal of

is that in these input of the for loop, the input of name=main is not editable, while the input of name=first and name=second is editable, and the value of name=main is dynamically completed by first+second. How to solve this problem?

make it up. I can"t do it with index. I missed it. I have to use the binding value to complete

.
Apr.08,2022

if it's just what you mean:

<template>
  <div>
    <input v-for="(item, index) in plusArr" :key="index" v-model="item.value">
  </div>
</template>

<script>
export default {
  props: {},
  components: {},
  data () {
    return {
      arr: [
        { 'value': '1', 'name': 'main' },
        { 'value': '2', 'name': 'first' },
        { 'value': '3', 'name': 'second' },
        { 'value': '66', 'name': 'a' },
        { 'value': '66', 'name': 'b' },
        { 'value': '66', 'name': 'c' }
      ]
    }
  },
  computed: {
    plusArr () {
      this.arr.forEach((element, index) => {
        this.arr[0].value = parseInt(this.arr[1].value) + parseInt(this.arr[2].value)
      })
      return this.arr
    }
  },
  created () {
  },
  methods: {}
}
</script>

Menu