elementui select只读
时间: 2023-09-02 08:12:34 浏览: 107
elementUI 设置input的只读或禁用的方法
elementUI的select组件可以通过设置属性来实现只读状态。你可以在使用select组件时,添加一个属性`:readonly="true"`来将其设置为只读状态。例如:
```
<el-select :readonly="true">
<!-- 选项内容 -->
</el-select>
```
这样,select组件就无法进行选择操作了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [elementUI select组件默认选中效果实现的方法](https://download.csdn.net/download/weixin_38717980/12944922)[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: 33.333333333333336%"]
- *2* [elementUI组件只读或禁用](https://blog.csdn.net/jizhou007/article/details/112918228)[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: 33.333333333333336%"]
- *3* [【实习小tip】多层dialog弹窗遮罩问题、elementUI的form表单组件的select框在只读的情况下没办法拿到传来的...](https://blog.csdn.net/fangyuan__/article/details/126219468)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文