0
0
Fork 0

refs #6694 perf: order VnLocation attrs

This commit is contained in:
Javier Segarra 2024-01-18 07:32:04 +01:00
parent 655c821075
commit 0e50691032
1 changed files with 9 additions and 9 deletions

View File

@ -90,6 +90,10 @@ function handleFetch( data) {
:label="t('Location')" :label="t('Location')"
:option-label="showLabel" :option-label="showLabel"
:placeholder="t('Search by postalCode, town, province or country')" :placeholder="t('Search by postalCode, town, province or country')"
@input-value="locationFilter"
:default-filter="false"
:input-debounce="100"
:class="{ required: $attrs.required }"
v-bind="$attrs" v-bind="$attrs"
emit-value emit-value
map-options map-options
@ -97,19 +101,15 @@ function handleFetch( data) {
clearable clearable
hide-selected hide-selected
fill-input fill-input
:class="{ required: $attrs.required }"
@input-value="locationFilter"
:default-filter="false"
:input-debounce="100"
> >
<template #form> <template #form>
<CreateNewPostcode @on-data-saved="onPostcodeCreated($event)" /> <CreateNewPostcode @on-data-saved="onPostcodeCreated($event)" />
</template> </template>
<template #option="scope"> <template #option="{itemProps, opt}">
<QItem v-bind="scope.itemProps"> <QItem v-bind="itemProps">
<QItemSection v-if="scope.opt"> <QItemSection v-if="opt">
<QItemLabel>{{ scope.opt.code }}</QItemLabel> <QItemLabel>{{ opt.code }}</QItemLabel>
<QItemLabel caption>{{ showLabel(scope.opt) }}</QItemLabel> <QItemLabel caption>{{ showLabel(opt) }}</QItemLabel>
</QItemSection> </QItemSection>
</QItem> </QItem>
</template> </template>