2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

docs: add reduce caveats

This commit is contained in:
Jeff Sagal
2021-10-22 17:17:18 -07:00
parent 5a6c9bf707
commit 0d294c31bd
2 changed files with 112 additions and 59 deletions
@@ -0,0 +1,20 @@
<template>
<v-select
v-model="selected"
:reduce="(option) => option.id"
:options="[
{ label: 'One', id: 1 },
{ label: 'Two', id: 2 },
]"
/>
</template>
<script>
export default {
data() {
return {
selected: 3,
}
},
}
</script>