el-select 放图片
时间: 2023-10-19 07:33:19 浏览: 122
el-select 放图片是通过在 el-option 的标签中嵌入 el-image 组件实现的。通过设置 el-image 的 src 属性来指定图片的路径,然后设置适当的宽度和高度来展示图片。在这个例子中,可以看到在 el-option 标签中的 div 中嵌入了 el-image 组件,然后设置了图片的样式和路径。这样就可以在 el-select 中显示带有图片的选项了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Vue ElementUI el-select 图片选择效果](https://download.csdn.net/download/sinat_31213021/87490830)[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: 50%"]
- *2* *3* [element:el-select加图片](https://blog.csdn.net/qq_16946803/article/details/127083615)[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: 50%"]
[ .reference_list ]
阅读全文