Answer the question
In order to leave comments, you need to log in
How to save images from vue-select.org options?
Hello, due to the need for a beautiful-animated select-e language, I use vue-select.org, however, as far as I understand, svg will have to be stored in data in it, that is, I will succeed
data: {
options: [
{
title: 'Read the Docs',
svg: '<svg>...</svg>',
},
]
}
Answer the question
In order to leave comments, you need to log in
This is bad practice. The most optimal option is to use the slot option as specified in the api:
<template>
<v-select :options="books" label="title">
<template #option="{ title, author }">
<h3 style="margin: 0">{{ title }}</h3>
<em>{{ author.firstName }} {{ author.lastName }}</em>
</template>
</v-select>
</template>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question