refs #6694 perf: order VnLocation attrs
This commit is contained in:
parent
655c821075
commit
0e50691032
|
@ -90,6 +90,10 @@ function handleFetch( data) {
|
|||
:label="t('Location')"
|
||||
:option-label="showLabel"
|
||||
: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"
|
||||
emit-value
|
||||
map-options
|
||||
|
@ -97,19 +101,15 @@ function handleFetch( data) {
|
|||
clearable
|
||||
hide-selected
|
||||
fill-input
|
||||
:class="{ required: $attrs.required }"
|
||||
@input-value="locationFilter"
|
||||
:default-filter="false"
|
||||
:input-debounce="100"
|
||||
>
|
||||
<template #form>
|
||||
<CreateNewPostcode @on-data-saved="onPostcodeCreated($event)" />
|
||||
</template>
|
||||
<template #option="scope">
|
||||
<QItem v-bind="scope.itemProps">
|
||||
<QItemSection v-if="scope.opt">
|
||||
<QItemLabel>{{ scope.opt.code }}</QItemLabel>
|
||||
<QItemLabel caption>{{ showLabel(scope.opt) }}</QItemLabel>
|
||||
<template #option="{itemProps, opt}">
|
||||
<QItem v-bind="itemProps">
|
||||
<QItemSection v-if="opt">
|
||||
<QItemLabel>{{ opt.code }}</QItemLabel>
|
||||
<QItemLabel caption>{{ showLabel(opt) }}</QItemLabel>
|
||||
</QItemSection>
|
||||
</QItem>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue