mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-10 07:52:23 +03:00
27 lines
515 B
Vue
27 lines
515 B
Vue
<template>
|
|
<!-- eslint-disable vue/no-unused-vars -->
|
|
<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>
|