优化api文档ui
This commit is contained in:
@@ -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>,
|
||||
},
|
||||
]}
|
||||
|
||||
Reference in New Issue
Block a user