this.$refs.table.selection
时间: 2023-09-01 09:09:50 浏览: 260
Vue 解决通过this.$refs来获取DOM或者组件报错问题
this.$refs.table.selection是指通过this.$refs.table获取到的表格组件的selection属性。在给表格添加了type="selection"属性之后,可以通过this.$refs.table.selection来获取当前选中的项。<span class="em">1</span>
#### 引用[.reference_title]
- *1* [如何选中及清除el-table选中项](https://blog.csdn.net/qq_42931285/article/details/124855289)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文