2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00

overhaul selecting docs, updated navigation and URL structure

This commit is contained in:
Jeff
2019-03-31 15:10:08 -07:00
parent 38baaf33ad
commit db43a67801
13 changed files with 208 additions and 96 deletions
+17
View File
@@ -0,0 +1,17 @@
#### Scoped Slot `option`
vue-select provides the scoped `option` slot in order to create custom dropdown templates.
```html
<v-select :options="options" label="title">
<template slot="option" slot-scope="option">
<span :class="option.icon"></span>
{{ option.title }}
</template>
</v-select>
```
Using the `option` slot with `slot-scope="option"` gives the
provides the current option variable to the template.
<CodePen url="NXBwYG" height="500"/>