Update autocomplete demo
parent
fa537c5495
commit
639a51cdea
|
@ -15,7 +15,7 @@
|
||||||
<h3>Dropdown and Templating</h3>
|
<h3>Dropdown and Templating</h3>
|
||||||
<AutoComplete v-model="brand" :suggestions="filteredBrands" @complete="searchBrand($event)" placeholder="Search car brands" :dropdown="true">
|
<AutoComplete v-model="brand" :suggestions="filteredBrands" @complete="searchBrand($event)" placeholder="Search car brands" :dropdown="true">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="p-clearfix p-autocomplete-brand-item">
|
<div class="p-autocomplete-brand-item">
|
||||||
<img :alt="slotProps.item" :src="'demo/images/car/' + slotProps.item + '.png'" />
|
<img :alt="slotProps.item" :src="'demo/images/car/' + slotProps.item + '.png'" />
|
||||||
<div>{{slotProps.item}}</div>
|
<div>{{slotProps.item}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -102,16 +102,12 @@ export default {
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.p-autocomplete-brand-item {
|
.p-autocomplete-brand-item {
|
||||||
img {
|
display: flex;
|
||||||
width: 32px;
|
align-items: center;
|
||||||
display: inline-block;
|
justify-content: space-between;
|
||||||
margin: 5px 0 2px 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div {
|
img {
|
||||||
font-size: 16px;
|
width: 28px;
|
||||||
float: right;
|
|
||||||
margin: 10px 10px 0 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -261,7 +261,7 @@ export default {
|
||||||
<h3>Dropdown and Templating</h3>
|
<h3>Dropdown and Templating</h3>
|
||||||
<AutoComplete v-model="brand" :suggestions="filteredBrands" @complete="searchBrand($event)" placeholder="Hint: type 'v' or 'f'" :dropdown="true">
|
<AutoComplete v-model="brand" :suggestions="filteredBrands" @complete="searchBrand($event)" placeholder="Hint: type 'v' or 'f'" :dropdown="true">
|
||||||
<template #item="slotProps">
|
<template #item="slotProps">
|
||||||
<div class="p-clearfix p-autocomplete-brand-item">
|
<div class="p-autocomplete-brand-item">
|
||||||
<img :alt="slotProps.item" :src="'demo/images/car/' + slotProps.item + '.png'" />
|
<img :alt="slotProps.item" :src="'demo/images/car/' + slotProps.item + '.png'" />
|
||||||
<div>{{slotProps.item}}</div>
|
<div>{{slotProps.item}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -341,17 +341,13 @@ export default {
|
||||||
|
|
||||||
<CodeHighlight lang="css">
|
<CodeHighlight lang="css">
|
||||||
.p-autocomplete-brand-item {
|
.p-autocomplete-brand-item {
|
||||||
img {
|
display: flex;
|
||||||
width: 32px;
|
align-items: center;
|
||||||
display: inline-block;
|
justify-content: space-between;
|
||||||
margin: 5px 0 2px 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div {
|
img {
|
||||||
font-size: 16px;
|
width: 28px;
|
||||||
float: right;
|
}
|
||||||
margin: 10px 10px 0 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</CodeHighlight>
|
</CodeHighlight>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
|
|
Loading…
Reference in New Issue