shentao / vue-multiselect

Universal select/multiselect/tagging component for Vue.js
https://vue-multiselect.js.org/
MIT License
6.66k stars 989 forks source link

use slot="singleLabel" when multiple="true" #1664

Open Xu-Li-Min opened 1 year ago

Xu-Li-Min commented 1 year ago

Hi, I want to ask if I have an option [{id:1,text:'1'}] and multiple="true", can I customize my own display in slot="singleLabel" and search for id and text values at the same time when searching?

Reproduction Link

https://codepen.io/XuLiMin/pen/OJoyJRp

Expected behaviour

When selected, the singleLabel should be displayed

Actual behaviour

Still display the value of custom-label return