1 | import * as React from 'react';
|
2 | import RcSteps from 'rc-steps';
|
3 | import type { ProgressDotRender } from 'rc-steps/lib/Steps';
|
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 | rootClassName?: string;
|
19 | current?: number;
|
20 | direction?: 'horizontal' | 'vertical';
|
21 | iconPrefix?: string;
|
22 | initial?: number;
|
23 | labelPlacement?: 'horizontal' | 'vertical';
|
24 | prefixCls?: string;
|
25 | progressDot?: boolean | ProgressDotRender;
|
26 | responsive?: boolean;
|
27 | size?: 'default' | 'small';
|
28 | status?: 'wait' | 'process' | 'finish' | 'error';
|
29 | style?: React.CSSProperties;
|
30 | percent?: number;
|
31 | onChange?: (current: number) => void;
|
32 | children?: React.ReactNode;
|
33 | items?: StepProps[];
|
34 | }
|
35 | type CompoundedComponent = React.FC<StepsProps> & {
|
36 | Step: typeof RcSteps.Step;
|
37 | };
|
38 | declare const Steps: CompoundedComponent;
|
39 | export default Steps;
|