elementui可编辑table

                  <el-table-column
                                       label="明细"
                                       width="220">
                                   <template slot-scope="scope">
                                       <template >
                                           <div  v-if="scope.row.isShow=='2'" class="add-hang" style="">
                                               <ul>
                                                   <li v-on:click="add(scope.row,scope.$index);">+</li>
                                                   <li v-on:click="deletetd(scope.row,scope.$index);">-</li>
                                               </ul>
                                           </div>
                                           <el-input type="textarea"   v-model="scope.row.goods_name"></el-input>
                                       </template>
                                   </template>
                               </el-table-column>

 

动图效果可参考:https://www.jianshu.com/p/33175c3a6ba4

posted @ 2019-02-19 14:22  748573200000  阅读(3363)  评论(0)    收藏  举报