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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM