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
来源:程序园用户自行投稿发布,如果侵权,请联系站长删除
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! 过来提前占个楼 yyds。多谢分享
页:
[1]