2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-07 07:12:23 +03:00
- pull toggleTargets out of `toggleDropdown(e)` and into it's own computed property
- add focus, blur to options slots
This commit is contained in:
Jeff
2019-04-29 11:11:23 -07:00
parent 074c0b6686
commit 62e39357bd
2 changed files with 39 additions and 31 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
<template>
<v-select :options="books" label="title">
<template #selected-option="{author, title}">
<component :is="option" v-bind="{author, title}"/>
<v-select :options="books" label="title" multiple>
<template #selected-option="{author, title, focus}">
<component :is="option" v-bind="{author, title}" @click="focus"/>
</template>
<template #option="{author, title}">
<component :is="option" v-bind="{author, title}"/>