提交 6221a753 编写于 作者: D DebugIsFalse

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

...@@ -28,32 +28,30 @@ ...@@ -28,32 +28,30 @@
<template v-for="(item, index) in data" :key="index"> <template v-for="(item, index) in data" :key="index">
<h1 class="text-3xl truncate" v-if="index !== 0" :id="index + 1">{{ item.question }}</h1> <h1 class="text-3xl truncate" v-if="index !== 0" :id="index + 1">{{ item.question }}</h1>
<UProgress :value="item.step" :max="steps" :color="stepColor(item.step)" indicator> <UCard :ui="{ body: { padding: 'p-4 sm:p-4' } }">
<template #step-1="{ step }"> <UAccordion :items="[{}]">
<span class="text-blue-500 items-center justify-end flex space-x-1"> <template #default="{ open }">
<UIcon name="i-heroicons-document-chart-bar-20-solid" class="text-base" /> <div class="flex justify-between items-center">
<span>{{ step }}</span> <div class="flex items-center gap-2 text-lg">
</span> <UIcon name="i-heroicons-sparkles-20-solid" />
</template> 搜索过程
<template #step-2="{ step }"> </div>
<span class="text-blue-500 items-center justify-end flex space-x-1"> <UButton
<UIcon name="i-heroicons-code-bracket-square-20-solid" class="text-base" /> size="md"
<span>{{ step }}</span> color="gray"
</span> variant="ghost"
</template> :icon="open ? 'i-heroicons-chevron-up-20-solid' : 'i-heroicons-chevron-down-20-solid'"
<template #step-3="{ step }"> :ui="{ rounded: 'rounded-full' }"
<span class="text-blue-500 items-center justify-end flex space-x-1"> />
<UIcon name="i-heroicons-document-20-solid" class="text-base" /> </div>
<span>{{ step }}</span> </template>
</span> <template #item="{ item }">
</template> <div class="text-base">改写问题</div>
<template #step-4="{ step }"> <article class="prose prose-sm">内容内容内容</article>
<span class="text-green-500 items-center justify-end flex space-x-1"> </template>
<UIcon name="i-heroicons-document-check-20-solid" class="text-base" /> </UAccordion>
<span>{{ step }}</span> </UCard>
</span>
</template>
</UProgress>
<div class="text-xl flex items-center space-x-1"> <div class="text-xl flex items-center space-x-1">
<UIcon name="i-heroicons-chat-bubble-left-right-20-solid" /> <UIcon name="i-heroicons-chat-bubble-left-right-20-solid" />
<span>答案</span> <span>答案</span>
...@@ -164,12 +162,6 @@ const handleReGenerate = (index) => { ...@@ -164,12 +162,6 @@ const handleReGenerate = (index) => {
} }
const steps = ['', '问题分析', '代码搜索', '整理答案', '完成!'] const steps = ['', '问题分析', '代码搜索', '整理答案', '完成!']
const stepColor = (step) => {
switch (true) {
case step >= steps.length - 1: return 'green'
default: return 'blue'
}
}
const data = ref([]) const data = ref([])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册