注意的内容点:
点击查看代码
<template v-for="(e, index) in appAdnInfo.ext" :key="e.name">
<el-form-item
:label-width="labelWidth"
:label="e.label"
:prop="'ext.' + index + '.value'"
:rules="[{ required: e.isChecked, message: e.name+'不能为空', trigger: 'blur' }]"
>
<el-input
autocomplete="off"
v-model="e.value"
placeholder="请输入"
:type="e.type"
:disabled="e.disabled"
/>
</el-form-item>
</template>