|
1 | 1 | <template>
|
2 |
| - <v-autocomplete |
3 |
| - v-model="model" |
4 |
| - v-model:search="search" |
5 |
| - ref="autocompleteRef" |
6 |
| - auto-select-first |
7 |
| - class="rounded searchContainer" |
8 |
| - clearable |
9 |
| - :custom-filter="filter" |
10 |
| - density="compact" |
11 |
| - hide-details |
12 |
| - hide-no-data |
13 |
| - item-title="properties.name" |
14 |
| - :items="items" |
15 |
| - label="Ort, Adresse, Flurname,..." |
16 |
| - :loading="!!abortController" |
17 |
| - :prepend-inner-icon="mdiMagnify" |
18 |
| - return-object |
19 |
| - single-line |
20 |
| - variant="outlined" |
21 |
| - @focus="handleInfoVisibility(true)" |
22 |
| - @click:clear="clear" |
23 |
| - > |
24 |
| - <template #item="{ props, item }"> |
25 |
| - <v-list-item |
26 |
| - v-bind="props" |
27 |
| - :key="item.raw.id" |
28 |
| - :id="item.raw.id" |
29 |
| - :value="item.raw.id" |
30 |
| - :subtitle="item.raw.type" |
31 |
| - :title="item.raw.properties.name" |
32 |
| - ></v-list-item> |
33 |
| - </template> |
34 |
| - </v-autocomplete> |
35 |
| - |
36 |
| - <v-menu v-model="showInfo" :target="autocompleteRef"> |
37 |
| - <v-card> |
38 |
| - <v-card-title> |
39 |
| - <v-icon :icon="mdiInformationOutline" size="small" /> |
40 |
| - Ortssuche |
41 |
| - </v-card-title> |
42 |
| - <v-card-subtitle> |
43 |
| - Die Suche des |
44 |
| - <a href="https://kataster.bev.gv.at" target="_blank" |
45 |
| - >Österreichischen Katasters</a |
46 |
| - ><br /> |
47 |
| - Suche nach Orten, Adressen, und mehr |
48 |
| - </v-card-subtitle> |
49 |
| - <v-card-text> |
50 |
| - <v-timeline align="start" density="compact" line-thickness="0"> |
51 |
| - <v-timeline-item |
52 |
| - v-for="(helpItem, key) in helpItems" |
53 |
| - :key="key" |
54 |
| - density="compact" |
55 |
| - dot-color="success" |
56 |
| - :icon="mdiTextSearchVariant" |
57 |
| - > |
58 |
| - <div> |
59 |
| - <div class="font-weight-normal"> |
60 |
| - <strong> {{ helpItem.name }}</strong> |
61 |
| - </div> |
62 |
| - {{ helpItem.example }} |
| 2 | + <v-autocomplete |
| 3 | + v-model="model" |
| 4 | + v-model:search="search" |
| 5 | + ref="autocompleteRef" |
| 6 | + auto-select-first |
| 7 | + class="rounded" |
| 8 | + min-width="280px" |
| 9 | + clearable |
| 10 | + :custom-filter="filter" |
| 11 | + density="compact" |
| 12 | + hide-details |
| 13 | + hide-no-data |
| 14 | + item-title="properties.name" |
| 15 | + :items="items" |
| 16 | + label="Ort, Adresse, Flurname,..." |
| 17 | + :loading="!!abortController" |
| 18 | + :prepend-inner-icon="mdiMagnify" |
| 19 | + return-object |
| 20 | + single-line |
| 21 | + variant="outlined" |
| 22 | + @focus="handleInfoVisibility(true)" |
| 23 | + @click:clear="clear" |
| 24 | + > |
| 25 | + <template #item="{ props, item }"> |
| 26 | + <v-list-item |
| 27 | + v-bind="props" |
| 28 | + :key="item.raw.id" |
| 29 | + :id="item.raw.id" |
| 30 | + :value="item.raw.id" |
| 31 | + :subtitle="item.raw.type" |
| 32 | + :title="item.raw.properties.name" |
| 33 | + ></v-list-item> |
| 34 | + </template> |
| 35 | + </v-autocomplete> |
| 36 | + |
| 37 | + <v-menu v-model="showInfo" :target="autocompleteRef"> |
| 38 | + <v-card> |
| 39 | + <v-card-title> |
| 40 | + <v-icon :icon="mdiInformationOutline" size="small" /> |
| 41 | + Ortssuche |
| 42 | + </v-card-title> |
| 43 | + <v-card-subtitle> |
| 44 | + Die Suche des |
| 45 | + <a href="https://kataster.bev.gv.at" target="_blank" |
| 46 | + >Österreichischen Katasters</a |
| 47 | + ><br /> |
| 48 | + Suche nach Orten, Adressen, und mehr |
| 49 | + </v-card-subtitle> |
| 50 | + <v-card-text> |
| 51 | + <v-timeline align="start" density="compact" line-thickness="0"> |
| 52 | + <v-timeline-item |
| 53 | + v-for="(helpItem, key) in helpItems" |
| 54 | + :key="key" |
| 55 | + density="compact" |
| 56 | + dot-color="success" |
| 57 | + :icon="mdiTextSearchVariant" |
| 58 | + > |
| 59 | + <div> |
| 60 | + <div class="font-weight-normal"> |
| 61 | + <strong> {{ helpItem.name }}</strong> |
63 | 62 | </div>
|
64 |
| - </v-timeline-item> |
65 |
| - </v-timeline> |
66 |
| - </v-card-text> |
67 |
| - </v-card> |
68 |
| - </v-menu> |
| 63 | + {{ helpItem.example }} |
| 64 | + </div> |
| 65 | + </v-timeline-item> |
| 66 | + </v-timeline> |
| 67 | + </v-card-text> |
| 68 | + </v-card> |
| 69 | + </v-menu> |
69 | 70 | </template>
|
70 | 71 |
|
71 | 72 | <script setup>
|
@@ -218,9 +219,3 @@ function handleInfoVisibility(visible) {
|
218 | 219 | }
|
219 | 220 | }
|
220 | 221 | </script>
|
221 |
| -
|
222 |
| -<style scoped> |
223 |
| -.searchContainer { |
224 |
| - min-width: 280px; |
225 |
| -} |
226 |
| -</style> |
0 commit comments