找回密码
 立即注册
首页 资源区 代码 vue 下拉框 vxe-select 实现人员选择下拉列表 ...

vue 下拉框 vxe-select 实现人员选择下拉列表

瞧厨 2025-10-16 17:25:03
vue 下拉框 vxe-select 实现人员选择下拉列表
使用自定义选项插槽的方式,可以灵活的实现各种类型的下拉选择
官网:https://vxeui.com
github:https://github.com/x-extends/vxe-pc-ui
gitee:https://gitee.com/x-extends/vxe-pc-ui
1.png

需要注意当每一行高度超多默认高度时,必须要设置 option-config.height 来自定义选项高度
  1. <template>
  2.   
  3.     <vxe-select v-model="val1" placeholder="人员选择" :options="opts1" :option-config="{height: 40}" multiple filterable clearable>
  4.       <template #option="{ option }">
  5.         
  6.           <img :src="option.url"  />
  7.          
  8.             {{ option.label }}
  9.             {{ getUserStatus(option.status) }}
  10.          
  11.         
  12.       </template>
  13.     </vxe-select>
  14.   
  15. </template>
复制代码
https://gitee.com/x-extends/vxe-pc-ui

来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!

相关推荐

2025-12-25 11:29:08

举报

2026-1-17 17:57:39

举报

懂技术并乐意极积无私分享的人越来越少。珍惜
2026-1-21 18:09:32

举报

喜欢鼓捣这些软件,现在用得少,谢谢分享!
2026-1-23 12:09:35

举报

2026-1-27 05:05:17

举报

2026-1-29 02:57:44

举报

2026-2-3 03:55:16

举报

12下一页
您需要登录后才可以回帖 登录 | 立即注册