treeselect 只读
时间: 2023-09-02 18:11:07 浏览: 290
要将Treeselect组件设置为只读,您可以使用readonly属性。根据引用中提供的信息,可以使用以下代码将Treeselect设置为只读:
<treeselect v-model="value" :multiple="true" :options="options" :readonly="true" />
其中,:readonly="true"表示将Treeselect设置为只读状态。通过这样设置,用户将无法对Treeselect进行编辑。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [使用SpringBoot + Vue (若依前后端分离版) 写项目的一些总结(持续更新...)](https://blog.csdn.net/weixin_41315492/article/details/106266500)[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: 50%"]
- *2* [如何将select控件设置为只读](https://blog.csdn.net/tantanit/article/details/104327905)[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: 50%"]
[ .reference_list ]
阅读全文