Open rudokemper opened 2 weeks ago
That's a nice catch @rudokemper, you're right the #value
slot isn't used when :is-multi="true"
.
I believe we can introduce a new slot called #tag
. This new slot should replace these lines. It should also allow access to the following values:
option
: the option object of the tagremoveOption()
: function to remove the tag from the selected valuesIf you have some time to work on this, a pull-request would be awesome 🙏
Feel free to also work on the Vitepress documentation if you have the time.
Thanks!
As far as I can tell, a custom option slot for
#value
does not render anything whenisMulti
is true. That is to say, the following code will not template selected options any differently:It would be nice to have this.
vue-select
permitted this with thev-slot:selected-option
parameter, which I used to style my multiple select dropdowns like this:If you agree that this is a nice feature to have, I can take a shot at adding this, unless you prefer to take it on :slightly_smiling_face: