el-table中el-select值
时间: 2023-10-15 10:25:26 浏览: 260
el-table,el-form在vue中封装组件化,含操作按钮和插槽.pdf
5星 · 资源好评率100%
在el-table表格中,使用el-select来实现动态选择对应的值。根据引用中的代码示例,可以看出el-select的值是通过数据绑定的方式来实现的。在el-table-column组件中,使用了slot-scope来获取当前行的索引,从而获取到对应的值。在el-select的v-model中绑定了一个数组userlist,通过scope.$index来获取当前行的索引,从而获取到对应的值。因此,el-table中el-select的值是由userlist数组中对应索引的值来确定的。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [el-table+el-tree+el-select动态选择对应值](https://blog.csdn.net/weixin_43388691/article/details/127385435)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [【表格嵌套选择器】elementul中el-table表格嵌套el-select方法,循环多个el-select获取对应值](https://blog.csdn.net/seeeeeeeeeee/article/details/121973090)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文