formData: {
param: [
{
key: "systemName",
describe: "系统名称",
value: "window1",
},
{
key: "umsIp",
describe: "用户IP",
value: "1.1.1.1",
},
{
key: "umsPort",
describe: "用户端口号",
value: "8080",
},
],
},
<el-form-item
v-for="(item, index) in formData.param"
:label="item.describe"
:key="item.key"
:prop="'param.' + index + '.value'"
:rules="{
required: true,
message: '请输入' + item.describe,
trigger: 'blur',
}"
>
<el-input
:placeholder="'请输入' + item.describe"
v-model="item.value"
>
<i slot="prefix" class="el-input__icon el-icon-user-solid"></i>
</el-input>
</el-form-item>
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/c71066b485fcd3529ecffb1b4a9ed765.png)