2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-10 07:52:23 +03:00
Files
vue-select/docs/.vuepress/components/SlotSelectedOptionContainer.vue
T
Jeff Sagal a820f06d61 docs: overhaul slot docs (#1099)
* docs: sort slots alphabetically
2020-03-11 09:16:07 -07:00

24 lines
453 B
Vue

<template>
<v-select :options="books" label="title">
<template #selected-option-container="{ option, deselect, multiple, disabled }">
<div class="vs__selected">{{ option.title }}</div>
</template>
</v-select>
</template>
<script>
export default {
data: () => ({
books: [
{
title: "Old Man's War",
author: {
firstName: "John",
lastName: "Scalzi"
}
}
]
})
}
</script>