2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-26 04:34:04 +03:00

remove images, update scope attribute

This commit is contained in:
Jeff
2018-01-13 00:07:14 -08:00
parent 8063da9a21
commit b4779c8d16
+2 -4
View File
@@ -39,12 +39,10 @@
<v-select placeholder="searchable=false" :options="options" :searchable="false"></v-select>
<v-select placeholder="search github.." label="full_name" @search="search" :options="ajaxRes"></v-select>
<v-select placeholder="custom option template" :options="options" multiple>
<template slot="selected-option" scope="option">
<img :src='"https://www.kidlink.org/icons/f0-" + option.value.toLowerCase() + ".gif"'/>
<template slot="selected-option" slot-scope="option">
{{option.label}}
</template>
<template slot="option" scope="option">
<img :src='"https://www.kidlink.org/icons/f0-" + option.value.toLowerCase() + ".gif"'/>
<template slot="option" slot-scope="option">
{{option.label}} ({{option.value}})
</template>
</v-select>