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:
@@ -56,6 +56,7 @@ export const CompName = {
|
||||
longTextCardSnap: "longTextCardSnap",
|
||||
longTextCardRoute: "longTextCardRoute",
|
||||
longTextCardScenicSpot: "longTextCardScenicSpot",
|
||||
longTextCardFullDocPreview: "longTextCardFullDocPreview",
|
||||
// 生成合成图片
|
||||
aigcPhotoGeneratorCard: "aigcPhotoGeneratorCard",
|
||||
};
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<template>
|
||||
<div class="w-full">
|
||||
<vue3-markdown-it :source="text" :html="true" />
|
||||
</div>
|
||||
<vue3-markdown-it :source="text" :html="true" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user