el-form对象嵌套、数组嵌套时的校验
对象嵌套
<el-form>
<el-from-item prop="formData.version_name"></el-from-item>
</el-form>
数组嵌套
<el-form>
<div v-for="version, i in formData.versions"
>
<el-from-item :prop="`versions[${i}].version_name`" :rules="formDataRules.version_name">
</el-from-item>
</div>
</el-form>
versions[${i}]
要用序号取值的写法,不能直接使用version,el-from-item上的rules的指定也不能省略