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