StepsBar.tsx 786 Bytes
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>
  );
}