feat: 新增svg组件,批量替换
This commit is contained in:
@ -3,14 +3,7 @@ import { ref } from 'vue';
|
||||
import type { BubbleListProps } from '@/components/xt-chat/xt-bubble/types';
|
||||
import markdownit from 'markdown-it';
|
||||
import { message as antdMessage } from 'ant-design-vue';
|
||||
import {
|
||||
IconFile,
|
||||
IconCaretUp,
|
||||
IconDownload,
|
||||
IconCaretDown,
|
||||
IconRefresh,
|
||||
IconCopy,
|
||||
} from '@arco-design/web-vue/es/icon';
|
||||
import SvgIcon from '@/components/svg-icon/index.vue';
|
||||
|
||||
import { Tooltip } from 'ant-design-vue';
|
||||
import TextOverTips from '@/components/text-over-tips/index.vue';
|
||||
@ -111,14 +104,14 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
return (
|
||||
<div class="flex items-center">
|
||||
<Tooltip title="复制" onClick={() => onCopy(content)} align={{ offset: [0, 4] }}>
|
||||
<div class="action-box">
|
||||
<IconCopy size={16} class="color-#737478" />
|
||||
<div class="action-box flex items-center">
|
||||
<SvgIcon name="xt-copy" size="16" class="color-#737478"/>
|
||||
</div>
|
||||
</Tooltip>
|
||||
{isLastRunTask && (
|
||||
<Tooltip title="重新生成" onClick={() => handleRemoteRefresh(item)} align={{ offset: [0, 4] }}>
|
||||
<div class="action-box ml-12px">
|
||||
<IconRefresh size={16} class="color-#737478 " />
|
||||
<div class="action-box ml-12px flex items-center">
|
||||
<SvgIcon name="xt-refresh" size="16" class="color-#737478"/>
|
||||
</div>
|
||||
</Tooltip>
|
||||
)}
|
||||
@ -317,7 +310,7 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
<>
|
||||
{_targetData && (
|
||||
<div class="file-card mt-10px">
|
||||
<IconFile class="w-24px h-24px mr-16px color-#6D4CFE" />
|
||||
<SvgIcon name="xt-file" size="14" class="color-#6D4CFE w-24px h-24px mr-16px"/>
|
||||
<div>
|
||||
<TextOverTips
|
||||
context={FILE_TYPE_MAP?.[_targetData.file_type] ?? '-'}
|
||||
@ -348,14 +341,14 @@ export default function useChatHandler(options: UseChatHandlerOptions): UseChatH
|
||||
// ) :
|
||||
<Tooltip title="复制" onClick={() => onCopy(existingItem.content.output)} align={{ offset: [0, 4] }}>
|
||||
<div class="action-box">
|
||||
<IconCopy size={16} class="color-#737478" />
|
||||
<SvgIcon name="xt-copy" size="16" class="color-#737478"/>
|
||||
</div>
|
||||
</Tooltip>
|
||||
)}
|
||||
{isLastRunTask && (
|
||||
<Tooltip title="重新生成" onClick={() => onRefresh(teamRunTaskId)} align={{ offset: [0, 4] }}>
|
||||
<div class="action-box ml-12px">
|
||||
<IconRefresh size={16} class="color-#737478 " />
|
||||
<div class="action-box ml-12px flex items-center">
|
||||
<SvgIcon name="xt-refresh" size="16" class="color-#737478"/>
|
||||
</div>
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user