style (search): 搜索部分ui 更改

This commit is contained in:
Huangzhe
2025-05-23 11:46:29 +08:00
parent cbf569b299
commit 2c4c60be8f

View File

@@ -26,10 +26,9 @@ function formatStr(str: string, limit = 6) {
<template #title> <template #title>
<el-text class="title">热门搜索</el-text> <el-text class="title">热门搜索</el-text>
</template> </template>
<el-space> <section class="tags">
<el-tag <el-tag
@click="updateKeyword(tag.key_word)" @click="updateKeyword(tag.key_word)"
style="color: black"
color="white" color="white"
:hit="false" :hit="false"
round round
@@ -37,7 +36,7 @@ function formatStr(str: string, limit = 6) {
> >
{{ formatStr(tag.key_word) }} {{ formatStr(tag.key_word) }}
</el-tag> </el-tag>
</el-space> </section>
</layout> </layout>
<layout> <layout>
@@ -49,15 +48,8 @@ function formatStr(str: string, limit = 6) {
</div> </div>
</section> </section>
</template> </template>
<section style="display: flex; flex-wrap: wrap"> <section class="tags">
<el-tag <el-tag color="white" :hit="false" round @click="updateKeyword(tag)" v-for="tag in history">
style="color: black; margin: 3px"
color="white"
:hit="false"
round
@click="updateKeyword(tag)"
v-for="tag in history"
>
{{ formatStr(tag) }} {{ formatStr(tag) }}
</el-tag> </el-tag>
</section> </section>
@@ -86,4 +78,14 @@ function formatStr(str: string, limit = 6) {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.tags {
display: flex;
flex-wrap: wrap;
gap: 5px;
.el-tag {
color: black;
}
}
</style> </style>