vuejs 动态添加input框的实例讲解(2)

<div> <el-button type="primary" @click="addProducts">添加产品</el-button> <el-form > <el-form-item> <el-table :data="productNews" border> <el-table-column prop="name" label="名称"> <template slot-scope="scope"> <el-input

v-model="productNews[scope.$index].name

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/41cd3f799a9ebceca06f682dff81db94.html