vue-search-select icon indicating copy to clipboard operation
vue-search-select copied to clipboard

How to pass extra parameters to @select event handler

Open igasparetto opened this issue 6 years ago • 2 comments

I'd like to do something like this:

@select="onSelect(item, otherParam)"

Thanks

igasparetto avatar Feb 18 '19 11:02 igasparetto

This does the trick, but I don't like it:

@select="(item) => {onSelect(1, item)}"

igasparetto avatar Feb 18 '19 11:02 igasparetto

This can be implemented with watch function. model-select :options="options" v-model="item" placeholder="select item" /model-select

watch: { item: { handler () { // event }, deep: true } }

angel82800 avatar May 18 '19 19:05 angel82800