Fixed image paths

This commit is contained in:
cagataycivici 2019-05-23 17:51:56 +03:00
parent bc379c2d1a
commit 982a7aae60
18 changed files with 38 additions and 38 deletions

View file

@ -41,7 +41,7 @@ export default {
<SelectButton v-model="selectedCar" :options="cars" optionLabel="brand">
<template #option="slotProps">
<div style="text-align: center; padding: 1em; width: 125px">
<img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="width:48px" />
<img :alt="slotProps.option.brand" :src="'demo/images/car/' + slotProps.option.brand + '.png'" style="width:48px" />
<div style="margin-top: 1em">{{slotProps.option.brand}}</div>
</div>
</template>
@ -176,7 +176,7 @@ export default {
<SelectButton v-model="selectedCar" :options="cars" optionLabel="brand">
<template #option="slotProps">
<div style="text-align: center; padding: 1em; width: 125px">
<img :alt="slotProps.option.brand" :src="'/demo/images/car/' + slotProps.option.brand + '.png'" style="width:48px" />
<img :alt="slotProps.option.brand" :src="'demo/images/car/' + slotProps.option.brand + '.png'" style="width:48px" />
<div style="margin-top: 1em">{{slotProps.option.brand}}</div>
</div>
</template>