el-cascader太长
时间: 2023-09-05 08:14:38 浏览: 95
el-cascader是一个基于Vue.js的级联选择器组件,用于实现省市区街道等级联选择功能。如果el-cascader的长度过长,你可以通过给.el-cascader-panel指定一个固定的高度来解决这个问题。你可以在全局的CSS文件中添加以下样式代码来设置.el-cascader-panel的高度:
.el-cascader-panel {
height: 300px!important;
}
这样,el-cascader的弹出面板的高度就会被固定为300像素,从而解决了长度过长的问题。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [Element-ui中Cascader组件数据太长显示不全的解决方案](https://blog.csdn.net/m0_37446642/article/details/123433465)[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: 50%"]
- *2* [vue el-cascader所需要的省市区街道联动的数据格式](https://download.csdn.net/download/weixin_41475202/12663454)[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: 50%"]
[ .reference_list ]
阅读全文