refactor: cleanup, add component name, swap icons

- remove unnecessary wrapper div in ChatMarkdown component
- add longTextCardFullDocPreview to CompName constants
- replace uni-icons with van-icon in LongTextGuideCardPreview
This commit is contained in:
duanshuwen
2026-06-29 11:21:41 +08:00
parent d4d9f21275
commit 02039a36e3
3 changed files with 3 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ export const CompName = {
longTextCardSnap: "longTextCardSnap",
longTextCardRoute: "longTextCardRoute",
longTextCardScenicSpot: "longTextCardScenicSpot",
longTextCardFullDocPreview: "longTextCardFullDocPreview",
// 生成合成图片
aigcPhotoGeneratorCard: "aigcPhotoGeneratorCard",
};

View File

@@ -1,7 +1,5 @@
<template>
<div class="w-full">
<vue3-markdown-it :source="text" :html="true" />
</div>
</template>
<script setup>

View File

@@ -19,7 +19,7 @@
</div>
<div class="mt-6 flex items-center justify-between">
<span class="text-[#cbd5e1] text-[12px] font-bold">{{ item.footer }}</span>
<uni-icons type="right" size="16" color="#CBD5E1"></uni-icons>
<van-icon name="arrow" size="16" color="#CBD5E1" />
</div>
</div>