功能:适配项目迭代页布局

This commit is contained in:
Liu 宇阳
2024-11-11 14:40:53 +08:00
parent d78805f80c
commit ec8acc1815
4 changed files with 16 additions and 19 deletions

View File

@@ -113,7 +113,6 @@ const ArticlePage = () => {
align: 'center', align: 'center',
width: 200, width: 200,
render: (text: string) => dayjs(+text).format('YYYY-MM-DD HH:mm:ss'), render: (text: string) => dayjs(+text).format('YYYY-MM-DD HH:mm:ss'),
defaultSortOrder: 'descend',
sorter: (a: Article, b: Article) => +a.createTime! - +b.createTime! sorter: (a: Article, b: Article) => +a.createTime! - +b.createTime!
}, },
{ {

View File

@@ -54,8 +54,7 @@ const CommentPage = () => {
{ {
title: '名称', title: '名称',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name'
fixed: 'left',
}, },
{ {
title: '内容', title: '内容',
@@ -90,7 +89,6 @@ const CommentPage = () => {
dataIndex: 'createTime', dataIndex: 'createTime',
key: 'createTime', key: 'createTime',
render: (date: string) => dayjs(+date).format('YYYY-MM-DD HH:mm:ss'), render: (date: string) => dayjs(+date).format('YYYY-MM-DD HH:mm:ss'),
defaultSortOrder: 'descend',
sorter: (a: Comment, b: Comment) => +a.createTime! - +b.createTime! sorter: (a: Comment, b: Comment) => +a.createTime! - +b.createTime!
}, },
{ {

View File

@@ -79,20 +79,22 @@ const Home = () => {
<GitHubCalendar username="liuyuyang01" year={year} /> <GitHubCalendar username="liuyuyang01" year={year} />
</div> </div>
<div className='flex justify-between'> <div className='overflow-auto w-full'>
<div className='flex-1'> <div className='flex w-[1350px]'>
<h3 className='text-xl text-center pb-6 font-bold text-gradient block'>ThriveX-Blog</h3> <div className='w-[400px]'>
<Timeline mode="left" items={blog_iterativeRecording} /> <h3 className='text-xl text-center pb-6 font-bold text-gradient block'>ThriveX-Blog</h3>
</div> <Timeline mode="left" items={blog_iterativeRecording} />
</div>
<div className='flex-1'> <div className='w-[400px] mx-[50px]'>
<h3 className='text-xl text-center pb-6 font-bold text-gradient block'>ThriveX-Admin</h3> <h3 className='text-xl text-center pb-6 font-bold text-gradient block'>ThriveX-Admin</h3>
<Timeline mode="left" items={admin_iterativeRecording} /> <Timeline mode="left" items={admin_iterativeRecording} />
</div> </div>
<div className='flex-1'> <div className='w-[400px]'>
<h3 className='text-xl text-center pb-6 font-bold text-gradient block'>ThriveX-Service</h3> <h3 className='text-xl text-center pb-6 font-bold text-gradient block'>ThriveX-Service</h3>
<Timeline mode="left" items={server_iterativeRecording} /> <Timeline mode="left" items={server_iterativeRecording} />
</div>
</div> </div>
</div> </div>
</Card> </Card>

View File

@@ -57,8 +57,7 @@ const WallPage = () => {
{ {
title: '名称', title: '名称',
dataIndex: 'name', dataIndex: 'name',
key: 'name', key: 'name'
fixed: 'left'
}, },
{ {
title: '内容', title: '内容',
@@ -81,7 +80,6 @@ const WallPage = () => {
dataIndex: 'createTime', dataIndex: 'createTime',
key: 'createTime', key: 'createTime',
render: (date: string) => dayjs(+date).format('YYYY-MM-DD HH:mm:ss'), render: (date: string) => dayjs(+date).format('YYYY-MM-DD HH:mm:ss'),
defaultSortOrder: 'descend',
sorter: (a: Wall, b: Wall) => +a.createTime! - +b.createTime! sorter: (a: Wall, b: Wall) => +a.createTime! - +b.createTime!
}, },
{ {