2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

Update slots.md (#959)

remove deprecated slot="" scope-slot="" syntax
This commit is contained in:
Reed Jones
2019-10-26 12:43:57 -06:00
committed by Jeff Sagal
parent b8fbefdc2d
commit 1aef52ade4
+2 -3
View File
@@ -10,14 +10,13 @@ vue-select provides the scoped `option` slot in order to create custom dropdown
```html
<v-select :options="options" label="title">
<template slot="option" slot-scope="option">
<template v-slot:option="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.
Using the `option` slot with props `"option"` provides the current option variable to the template.
<CodePen url="NXBwYG" height="500"/>