elcascader设置为可手动输入
时间: 2023-11-17 10:19:10 浏览: 296
要将 el-cascader 设置为可手动输入,可以通过设置 prop 属性 `filterable` 为 `true` 来实现。这样用户就可以在输入框中手动输入选项了。示例代码如下:
```
<el-cascader v-model="value" :options="options" :filterable="true" />
```
其中,`:filterable="true"` 表示启用可手动输入功能。这样用户就可以通过输入框手动输入选项了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [element cascader 设置默认值](https://blog.csdn.net/qq_38603174/article/details/124850543)[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/xyj19990301/article/details/131639698)[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* [element-ui 关于获取select 的label值方法](https://download.csdn.net/download/weixin_38702110/12953399)[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 ]
阅读全文