<!-- input , -->
<!-- useCustom a, b, c, -->
<div v-for="(uc, index) in useCustom" :key="index">
<el-form-item >
<!-- msgShopName, uc input a, b, c-->
<el-input v-model="msgForm.msgShopName[uc]" :placeholder="uc" style="margin-left: 4px; width: 200px" required></el-input>
</el-form-item>
</div>
my requirement is simple: add verification to each dynamically rendered input, making it a required form.
1. Simply try to write required, directly on the input box to make the input box required, but the result is invalid.
2. Tried to add rules rules directly. However, the effect is not good, and the verification is not accurate.
the problem I encountered is that prop is generally consistent with the validated control, but on my side, because the validated control msgShopName is not fixed, prop can not be consistent with msgShopName. Become uncontrollable.
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)