14
14
:async-function="queryFunction"
15
15
item-key="login"
16
16
>
17
-
<template #item="props">
17
+
<template #item="{ items, activeIndex, select, highlight }">
18
18
<li
19
-
v-for="(item, index) in props.items"
20
-
:key="index"
21
-
:class="{ active: props.activeIndex === index }"
19
+
v-for="(item, index) in items"
20
+
:key="item.id"
21
+
:class="{ active: activeIndex === index }"
22
22
>
23
-
<a role="button" @click="props.select(item)">
24
-
<img width="22px" height="22px" :src="item.avatar_url + '&s=40'" />
25
-
<span v-html="props.highlight(item)"></span>
23
+
<a role="button" @click="select(item)">
24
+
<img
25
+
style="width: 22px; height: 22px; margin-right: 5px"
26
+
:src="item.avatar_url + '&s=40'"
27
+
alt="avatar"
28
+
/>
29
+
<span v-html="highlight(item)"></span>
26
30
</a>
27
31
</li>
28
32
</template>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4