标签:length 删除 NPU contact back 动态 blur nta 数组
elementUI动态添加
添加描述:
<el-form-item
v-for="(item, index) in ruleForm.domains" domaina是存放绑定值的数组
:key="item.key"
:prop="‘domains.‘ + index + ‘.textareb‘" textareb是输入框绑定的值
:rules="{
required: true,
message: ‘请填写课程介绍‘,
trigger: ‘blur‘}"
> <el-input type="textarea" v-model="item.textareb" maxlength="300"style="width:524px;margin-left:16px" resize="none" class="aaaaaaaaaaaaa"> </el-input> <el-button type="primary" icon="el-icon-delete" class="addBtn" @click.prevent="inputRemove(item)"> item这个参数就是绑定的值
<i>删除</i>
</el-button> </el-form-item>
data中:
DIV
<div class="textarebDiv" v-for="(v, i) in list"> <el-button type="primary" icon="el-icon-delete" class="addBtn aadaadBtn" @click.prevent="divRemove(i)" style="background:none" ><i>删除</i></el-button > </div>
data中:
标签:length 删除 NPU contact back 动态 blur nta 数组
原文地址:https://www.cnblogs.com/home-/p/11704698.html