feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-04 19:59:06 +08:00
parent f1aa0399aa
commit 78fe73d0db
576 changed files with 18075 additions and 18912 deletions
@@ -18,8 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React, { useEffect, useMemo, useState } from 'react';
import { Modal, Button, Checkbox, Radio, RadioGroup } from '@douyinfe/semi-ui';
import { CheckSquare, Eraser, FileSpreadsheet, X } from 'lucide-react';
import { Modal, Button, Checkbox, Radio, RadioGroup } from '@/components/ui';
import {
renderExportQuota,
getLogOther,
@@ -168,7 +167,6 @@ const UsageLogsExportModal = ({
logCount = 0,
isAdminUser,
fetchLogsForExport,
usageRecordMode = false,
t,
}) => {
const prefsKey = isAdminUser
@@ -292,37 +290,16 @@ const UsageLogsExportModal = ({
footer={
<div className='flex justify-end gap-2'>
<Button
size={usageRecordMode ? 'small' : undefined}
icon={usageRecordMode ? <X className='w-3.5 h-3.5' /> : undefined}
onClick={() => setShowExportModal(false)}
disabled={exporting}
className={
usageRecordMode
? 'usage-record-action-button usage-record-action-button-soft'
: undefined
}
>
{t('取消')}
</Button>
<Button
size={usageRecordMode ? 'small' : undefined}
theme={usageRecordMode ? undefined : 'solid'}
icon={
usageRecordMode ? (
<FileSpreadsheet
className='w-3.5 h-3.5'
style={{ color: '#fff' }}
/>
) : undefined
}
theme='solid'
onClick={handleExport}
loading={exporting}
disabled={selectedCount === 0 || pageNoData}
className={
usageRecordMode
? 'usage-record-action-button usage-record-action-button-primary'
: undefined
}
>
{t('导出 Excel')}
</Button>
@@ -373,33 +350,15 @@ const UsageLogsExportModal = ({
<div className='flex gap-2'>
<Button
size='small'
theme={usageRecordMode ? undefined : 'borderless'}
icon={
usageRecordMode ? (
<CheckSquare className='w-3.5 h-3.5' />
) : undefined
}
theme='borderless'
onClick={() => setAll(true)}
className={
usageRecordMode
? 'usage-record-action-button usage-record-action-button-soft'
: undefined
}
>
{t('全选')}
</Button>
<Button
size='small'
theme={usageRecordMode ? undefined : 'borderless'}
icon={
usageRecordMode ? <Eraser className='w-3.5 h-3.5' /> : undefined
}
theme='borderless'
onClick={() => setAll(false)}
className={
usageRecordMode
? 'usage-record-action-button usage-record-action-button-soft'
: undefined
}
>
{t('清空')}
</Button>
@@ -407,7 +366,7 @@ const UsageLogsExportModal = ({
</div>
<div
className='flex flex-wrap rounded-lg p-3'
style={{ border: '1px solid var(--semi-color-border)' }}
style={{ border: '1px solid var(--ui-color-border)' }}
>
{availableFields.map((f) => (
<div key={f.id} className='w-1/2 mb-2'>