1 | import RcSteps from 'rc-steps';
|
2 | import type { ProgressDotRender } from 'rc-steps/lib/Steps';
|
3 | import * as React from 'react';
|
4 | export interface StepProps {
|
5 | className?: string;
|
6 | description?: React.ReactNode;
|
7 | icon?: React.ReactNode;
|
8 | onClick?: React.MouseEventHandler<HTMLElement>;
|
9 | status?: 'wait' | 'process' | 'finish' | 'error';
|
10 | disabled?: boolean;
|
11 | title?: React.ReactNode;
|
12 | subTitle?: React.ReactNode;
|
13 | style?: React.CSSProperties;
|
14 | }
|
15 | export interface StepsProps {
|
16 | type?: 'default' | 'navigation' | 'inline';
|
17 | className?: string;
|
18 | current?: number;
|
19 | direction?: 'horizontal' | 'vertical';
|
20 | iconPrefix?: string;
|
21 | initial?: number;
|
22 | labelPlacement?: 'horizontal' | 'vertical';
|
23 | prefixCls?: string;
|
24 | progressDot?: boolean | ProgressDotRender;
|
25 | responsive?: boolean;
|
26 | size?: 'default' | 'small';
|
27 | status?: 'wait' | 'process' | 'finish' | 'error';
|
28 | style?: React.CSSProperties;
|
29 | percent?: number;
|
30 | onChange?: (current: number) => void;
|
31 | children?: React.ReactNode;
|
32 | items?: StepProps[];
|
33 | }
|
34 | type CompoundedComponent = React.FC<StepsProps> & {
|
35 | Step: typeof RcSteps.Step;
|
36 | };
|
37 | declare const Steps: CompoundedComponent;
|
38 | export default Steps;
|