el-form-item的v-for
时间: 2023-11-05 18:56:33 浏览: 81
el-form-item的v-for是用来动态生成多个相同的el-form-item组件的。在这个例子中,v-for="(item, index) in form.input"表示在form.input数组的每一个元素上都会生成一个el-form-item组件。其中item是数组元素的值,index是元素的索引。这样就可以根据form.input数组的长度动态生成对应数量的el-form-item组件了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [element-ui使用v-for循环el-form-item。并添加校验](https://blog.csdn.net/qq_33769914/article/details/122449601)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [el-form-item中使用v-if导致规则检验不生效问题](https://blog.csdn.net/qq_42715494/article/details/124930996)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文