import React from 'react'; import { StepsProps } from 'antd'; export type Status = 'error' | 'process' | 'finish' | 'wait'; type ProgressDotRender = (iconDot: any, info: { index: number; status: Status; title: React.ReactNode; description: React.ReactNode; }) => React.ReactNode; export type StepsSize = 'large' | 'middle' | 'small'; export type TextLayout = 'default' | 'updown'; interface BaseStepsProps { /** 步骤条类名 */ className?: string; /** 指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 status 属性覆盖状态 */ current?: number; /** 指定大小,默认small */ size?: StepsSize; /** 指定步骤条方向。目前支持水平(horizontal)和竖直(vertical)两种方向 */ direction?: 'horizontal' | 'vertical'; /** 点状步骤条,可以设置为一个 function */ progressDot?: 'default' | boolean | ProgressDotRender; /** 文本排版,仅在direction为水平(horizontal)时生效 */ textLayout?: TextLayout; /** 指定当前步骤的状态 */ status?: Status; /** 起始序号,从 0 开始记数 */ initial?: number; /** 点击切换步骤时触发 */ onChange?: (current: number) => void; } export type FRCStepsProps = BaseStepsProps & Omit; export declare const Steps: React.FC; export default Steps;