<el-col v-if="newEditFlag" key="1" :span="8"> <el-form-item label="联系电话:" prop="startUserTel"> <el-input v-model="basicInfo.startUserTel" placeholder="请输入" /> </el-form-item> </el-col> <el-col v-else key="2" :span="8"> <el-form-item label="联系电话:"> <el-input v-model="basicInfo.startUserTel" disabled /> </el-form-item> </el-col>
绑定key值