el-select 多选 变checkbox
时间: 2023-10-19 12:30:47 浏览: 101
el-select多选变为checkbox的方法可以通过在el-select中添加属性multiple来实现。例如,在你提供的HTML代码中,如果要将el-select多选变为checkbox,可以在el-select标签上添加multiple属性,如下所示:
```html
<el-select v-model="selectedOptions" multiple>
<!-- el-option的内容 -->
</el-select>
```
在上述代码中,通过添加multiple属性,el-select就可以支持多选功能,并且可以将多个选项选择为checkbox形式。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [element el-select+el-checkbox多选实现二级联动单个选项禁用效果以及选中选项对应表头高亮:header-cell-...](https://blog.csdn.net/qq_53986004/article/details/128684394)[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_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文