优化api文档ui

This commit is contained in:
yml2213
2026-08-04 14:12:43 +08:00
parent ca58c2bcaa
commit 6404b10626
5 changed files with 185 additions and 50 deletions
+5 -6
View File
@@ -335,36 +335,35 @@ function OverviewSection() {
pagination={false}
rowKey="mode"
dataSource={deliveryModes}
scroll={{ x: 1080 }}
columns={[
{
title: '方式',
dataIndex: 'mode',
width: 140,
width: '14%',
render: (v: string) => <span style={{ fontWeight: 700, whiteSpace: 'nowrap', color: '#0f172a' }}>{v}</span>,
},
{
title: '适用场景',
dataIndex: 'scene',
width: 280,
width: '28%',
render: (v: string) => <span style={{ fontSize: 13, lineHeight: 1.6, display: 'block', color: '#334155' }}>{v}</span>,
},
{
title: '接口顺序',
dataIndex: 'steps',
width: 240,
width: '22%',
render: (v: string) => <pre className="api-docs__pre" style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-all' }}>{v}</pre>,
},
{
title: '相关接口',
dataIndex: 'interfaces',
width: 260,
width: '22%',
render: (v: string) => <pre className="api-docs__pre" style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-all' }}>{v}</pre>,
},
{
title: '建议',
dataIndex: 'recommend',
width: 180,
width: '14%',
render: (v: string) => <span style={{ fontSize: 13, lineHeight: 1.5, display: 'block', color: '#475569' }}>{v}</span>,
},
]}