feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -18,7 +18,8 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import { Empty } from '@douyinfe/semi-ui';
|
||||
import { Empty as AntEmpty } from 'antd';
|
||||
import { Empty } from '@/components/ui';
|
||||
import CardTable from '../../common/ui/CardTable';
|
||||
import {
|
||||
IllustrationNoResult,
|
||||
@@ -43,6 +44,7 @@ const TaskLogsTable = (taskLogsData) => {
|
||||
isAdminUser,
|
||||
t,
|
||||
COLUMN_KEYS,
|
||||
usageRecordMode = false,
|
||||
} = taskLogsData;
|
||||
|
||||
// Get all columns
|
||||
@@ -54,8 +56,17 @@ const TaskLogsTable = (taskLogsData) => {
|
||||
openContentModal,
|
||||
openVideoModal,
|
||||
isAdminUser,
|
||||
usageRecordMode,
|
||||
});
|
||||
}, [t, COLUMN_KEYS, copyText, openContentModal, openVideoModal, isAdminUser]);
|
||||
}, [
|
||||
t,
|
||||
COLUMN_KEYS,
|
||||
copyText,
|
||||
openContentModal,
|
||||
openVideoModal,
|
||||
isAdminUser,
|
||||
usageRecordMode,
|
||||
]);
|
||||
|
||||
// Filter columns based on visibility settings
|
||||
const getVisibleColumns = () => {
|
||||
@@ -79,27 +90,47 @@ const TaskLogsTable = (taskLogsData) => {
|
||||
rowKey='key'
|
||||
loading={loading}
|
||||
scroll={compactMode ? undefined : { x: 'max-content' }}
|
||||
className='rounded-xl overflow-hidden task-logs-table'
|
||||
className={
|
||||
usageRecordMode
|
||||
? 'task-logs-table usage-record-table'
|
||||
: 'rounded-xl overflow-hidden task-logs-table'
|
||||
}
|
||||
size='middle'
|
||||
empty={
|
||||
<div className='py-12'>
|
||||
<Empty
|
||||
image={<IllustrationNoResult style={{ width: 180, height: 180 }} />}
|
||||
darkModeImage={
|
||||
<IllustrationNoResultDark style={{ width: 180, height: 180 }} />
|
||||
}
|
||||
usageRecordMode ? (
|
||||
<AntEmpty
|
||||
image={AntEmpty.PRESENTED_IMAGE_SIMPLE}
|
||||
description={
|
||||
<div className='flex flex-col items-center gap-2'>
|
||||
<span className='text-gray-500 dark:text-gray-400 text-sm'>
|
||||
{t('搜索无结果')}
|
||||
</span>
|
||||
<span className='text-gray-400 dark:text-gray-500 text-xs'>
|
||||
<>
|
||||
<div>{t('搜索无结果')}</div>
|
||||
<div className='usage-record-empty-hint'>
|
||||
{t('暂无任务记录')}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<div className='py-12'>
|
||||
<Empty
|
||||
image={
|
||||
<IllustrationNoResult style={{ width: 180, height: 180 }} />
|
||||
}
|
||||
darkModeImage={
|
||||
<IllustrationNoResultDark style={{ width: 180, height: 180 }} />
|
||||
}
|
||||
description={
|
||||
<div className='flex flex-col items-center gap-2'>
|
||||
<span className='text-gray-500 dark:text-gray-400 text-sm'>
|
||||
{t('搜索无结果')}
|
||||
</span>
|
||||
<span className='text-gray-400 dark:text-gray-500 text-xs'>
|
||||
{t('暂无任务记录')}
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
pagination={{
|
||||
currentPage: activePage,
|
||||
|
||||
Reference in New Issue
Block a user