瞧厨 发表于 2025-10-16 17:25:03

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

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

需要注意当每一行高度超多默认高度时,必须要设置 option-config.height 来自定义选项高度
<template>

    <vxe-select v-model="val1" placeholder="人员选择" :options="opts1" :option-config="{height: 40}" multiple filterable clearable>
      <template #option="{ option }">
      
          <img :src="option.url"/>
         
            {{ option.label }}
            {{ getUserStatus(option.status) }}
         
      
      </template>
    </vxe-select>

</template>https://gitee.com/x-extends/vxe-pc-ui

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

慷规扣 发表于 2025-10-23 15:38:38

过来提前占个楼

宗和玉 发表于 昨天 06:59

yyds。多谢分享
页: [1]
查看完整版本: vue 下拉框 vxe-select 实现人员选择下拉列表