feat: 重构对话功能

This commit is contained in:
DEV_DSW
2026-04-14 17:02:20 +08:00
parent b3f07c4cfe
commit c61e41049f
53 changed files with 5200 additions and 1982 deletions

View File

@@ -0,0 +1,31 @@
<template>
<div class="flex flex-col h-full overflow-auto py-6 px-6">
<div class="pt-30">
<h1 class="text-[28px] font-bold mb-7 leading-tight">
你好<br />
我今天能帮你什么
</h1>
<div class="flex flex-wrap gap-3">
<button
v-for="tag in quickTags"
:key="tag"
class="px-3 py-1.5 rounded-2xl border border-[#E5E8EE] text-[13px] text-[#333] cursor-pointer hover:bg-[#2B7FFF] hover:text-white hover:border-[#2B7FFF] transition-colors"
@click="emit('click-tag', tag)"
>
{{ tag }}
</button>
</div>
</div>
<div class="mt-auto">
<slot name="task-center" />
</div>
</div>
</template>
<script setup lang="ts">
const quickTags = ['智能问数', '写代码', '查数据', '生成图片']
const emit = defineEmits<{
(e: 'click-tag', tag: string): void
}>()
</script>