el-form-item 设置 prop 报错:please t
2021-03-18 本文已影响0人
哒哒哒哒da
官方解释:
https://github.com/ElemeFE/element/issues/2327
但是实际的情况是:
<template v-for="(person,index) in Form.List">
<el-form-item :prop="'List.'+index + '.code'" :key="person.key" :rules="rules">
<el-input v-model="person.code"></el-input>
</el-form-item>
<el-form-item prop="name">
<el-input v-model="person.name"></el-input>
</el-form-item>
<el-button @click="removeDomain(index)" size="small">-</el-button>
</template>