提交 dcbfebb8 编写于 作者: D DebugIsFalse

Merge branch 'main' of gitcode.com:git_bot/ai-fe

...@@ -19,9 +19,8 @@ ...@@ -19,9 +19,8 @@
</div> </div>
<div v-if="$isSignIn" class="flex flex-col gap-2 border-l border-gray-200 dark:border-gray-800 pl-2 ml-5"> <div v-if="$isSignIn" class="flex flex-col gap-2 border-l border-gray-200 dark:border-gray-800 pl-2 ml-5">
<template v-for="(item, index) in searchHistory" :key="index"> <template v-for="(item, index) in searchHistory" :key="index">
<div class="flex group">
<UButton <UButton
class="flex-grow" class="flex group"
color="gray" color="gray"
variant="ghost" variant="ghost"
size="xs" size="xs"
...@@ -29,17 +28,17 @@ ...@@ -29,17 +28,17 @@
:to="`/search/${item.c_id}`" :to="`/search/${item.c_id}`"
@click="handleClickItem" @click="handleClickItem"
> >
<div class="truncate">{{ item.title }}</div> <div class="flex-grow truncate">{{ item.title }}</div>
</UButton>
<UButton <UButton
class="hidden group-hover:flex" class="hidden group-hover:flex"
color="red" color="red"
variant="ghost" variant="ghost"
size="xs" size="xs"
:padded="false"
leading-icon="i-heroicons-x-mark-20-solid" leading-icon="i-heroicons-x-mark-20-solid"
@click="handleRemoveRecordItem(item.c_id)" @click.stop.prevent="handleRemoveRecordItem(item.c_id)"
/> />
</div> </UButton>
</template> </template>
</div> </div>
<UModal v-model="isOpenHistory" :ui="{ width: 'w-full sm:max-w-screen-md' }"> <UModal v-model="isOpenHistory" :ui="{ width: 'w-full sm:max-w-screen-md' }">
...@@ -62,9 +61,8 @@ ...@@ -62,9 +61,8 @@
<UDivider /> <UDivider />
<div class="flex flex-col p-2"> <div class="flex flex-col p-2">
<template v-for="(item, index) in searchHistory" :key="index"> <template v-for="(item, index) in searchHistory" :key="index">
<div class="flex group">
<UButton <UButton
class="flex-grow" class="flex group"
color="gray" color="gray"
variant="ghost" variant="ghost"
long long
...@@ -72,16 +70,16 @@ ...@@ -72,16 +70,16 @@
:to="`/search/${item.c_id}`" :to="`/search/${item.c_id}`"
@click="handleClose" @click="handleClose"
> >
<div class="truncate font-light">{{ item.title }}</div> <div class="flex-grow truncate font-light">{{ item.title }}</div>
</UButton>
<UButton <UButton
class="hidden group-hover:flex" class="hidden group-hover:flex"
color="red" color="red"
variant="ghost" variant="ghost"
:padded="false"
leading-icon="i-heroicons-x-mark-20-solid" leading-icon="i-heroicons-x-mark-20-solid"
@click="handleRemoveRecordItem(item.c_id)" @click.stop.prevent="handleRemoveRecordItem(item.c_id)"
/> />
</div> </UButton>
</template> </template>
</div> </div>
</UModal> </UModal>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册