feat(Search): 添加站点搜索功能,支持选择和过滤

This commit is contained in:
jxxghp
2025-02-21 10:12:16 +08:00
parent 40645180a0
commit 32621ee299
4 changed files with 140 additions and 27 deletions

View File

@@ -346,7 +346,7 @@ onMounted(() => {
<VListItemTitle class="break-words whitespace-break-spaces">
搜索 <span class="font-bold">{{ searchWord }}</span> 相关的站点资源 ...
</VListItemTitle>
<VChipGroup v-if="hover.isHovering" v-model="selectedSites" column multiple @click.stop>
<VChipGroup v-if="hover.isHovering" v-model="selectedSites" column multiple>
<VChip
v-for="site in allSites"
:key="site.id"
@@ -354,6 +354,8 @@ onMounted(() => {
filter
variant="outlined"
:value="site.id"
size="small"
@click.stop
>
{{ site.name }}
</VChip>