import { FC, MouseEvent } from 'react'; import { StepsNodeProps } from './steps-node'; export interface StepsProps { /** * 自定义 class */ className?: string; /** * 节点 */ nodes?: StepsNodeItem[]; /** * 当前步骤索引 */ activeIndex?: number; /** * 点击步骤节点时回调 * * 默认不设置为不可点击模式 */ onClickNode?: (e: MouseEvent, index: number) => void; /** * 当前步骤状态 * * 仅在需要 非 `active` 状态时进行配置 */ activeStatus?: Exclude; /** * 尺寸 * * use config context `baseSize` as default */ size?: 'md' | 'sm'; /** * 类型 */ type?: 'standard' | 'dot'; /** * 标签位置 */ labelPlacement?: 'bottom' | 'right'; /** * 方向 */ direction?: 'horizontal' | 'vertical'; } export declare const Steps: FC; /** * @public */ export type StepsNodeItem = Omit;