element ui表格内容禁止多选
时间: 2023-08-21 08:04:39 浏览: 100
Element-ui 多选.md
要禁止Element UI表格的多选功能,可以通过在模板中的el-table组件上添加:row-selection="false"属性来实现。这样设置后,表格将不再显示选择框,也无法进行多选操作。\[1\]
例如,将模板中的el-table组件修改为以下代码:
```
<el-table ref="multipleTable" :data="tableData" border :row-selection="false">
<el-table-column type="selection" width="55"></el-table-column>
</el-table>
```
这样就禁止了Element UI表格的多选功能。
#### 引用[.reference_title]
- *1* *3* [element ui 表格单选 多选](https://blog.csdn.net/qq_35350009/article/details/125801525)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Element UI 表格单选、多选情景](https://blog.csdn.net/weixin_42505381/article/details/128810420)[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^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文