StepsBar.tsx
786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { Steps } from 'antd';
export interface StepsBarProps {
current?: number;
}
const stepItems = [
{
title: '上传文件',
description: '选择模板并上传',
},
{
title: '数据校验',
description: '五级校验与失败明细',
},
{
title: '数据确认',
description: '转译与成本核算',
},
{
title: '提交审批',
description: '进入审批链',
},
];
export function StepsBar({ current = 0 }: StepsBarProps) {
return (
<div
style={{
background: '#fff',
borderRadius: 10,
padding: '20px 32px 12px',
marginBottom: 20,
border: '1px solid #E5E7EB',
}}
>
<Steps current={current} items={stepItems} size="default" status="process" />
</div>
);
}