From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/share/text-generation/run-batch/res-download/index.tsx | 21 ++++++---------------
1 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/app/components/share/text-generation/run-batch/res-download/index.tsx b/app/components/share/text-generation/run-batch/res-download/index.tsx
index 8915cfe..f835ff7 100644
--- a/app/components/share/text-generation/run-batch/res-download/index.tsx
+++ b/app/components/share/text-generation/run-batch/res-download/index.tsx
@@ -1,15 +1,13 @@
'use client'
import type { FC } from 'react'
import React from 'react'
-import { RiDownloadLine } from '@remixicon/react'
import {
useCSVDownloader,
} from 'react-papaparse'
import { useTranslation } from 'react-i18next'
-import ActionButton from '@/app/components/base/action-button'
-import Button from '@/app/components/base/button'
import cn from '@/utils/classnames'
-
+import { Download02 as DownloadIcon } from '@/app/components/base/icons/src/vender/solid/general'
+import Button from '@/app/components/base/button'
export type IResDownloadProps = {
isMobile: boolean
values: Record<string, string>[]
@@ -33,17 +31,10 @@
}}
data={values}
>
- {isMobile && (
- <ActionButton>
- <RiDownloadLine className='h-4 w-4' />
- </ActionButton>
- )}
- {!isMobile && (
- <Button className={cn('space-x-1')}>
- <RiDownloadLine className='h-4 w-4' />
- <span>{t('common.operation.download')}</span>
- </Button>
- )}
+ <Button className={cn('space-x-2 bg-white', isMobile ? '!p-0 !w-8 justify-center' : '')}>
+ <DownloadIcon className='w-4 h-4 text-[#155EEF]' />
+ {!isMobile && <span className='text-[#155EEF]'>{t('common.operation.download')}</span>}
+ </Button>
</CSVDownloader>
)
}
--
Gitblit v1.8.0