el-form表单校验包含循环
时间:2020-08-14 16:14:11
收藏:0
阅读:297
1.循环的数据中,每个el-form-item都写rules、prop
2.rules为data中rules对象对应属性,如‘rules.name‘;
3.prop的第一部分为data中该组遍历数据对应的数组名,此例中为form中的‘personList’;第二部分为遍历的key值变量;第三部分为form中的‘personList’中该输入框对应的属性名;
原文:https://www.cnblogs.com/duanzhenzhen/p/13502278.html
评论(0)