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
.