Steps.d.ts
1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import React from 'react';
import { Status, Icons } from './interface';
import Step from './Step';
export declare type StepIconRender = (info: {
index: number;
status: Status;
title: React.ReactNode;
description: React.ReactNode;
node: React.ReactNode;
}) => React.ReactNode;
export declare type ProgressDotRender = (iconDot: any, info: {
index: number;
status: Status;
title: React.ReactNode;
description: React.ReactNode;
}) => React.ReactNode;
export interface StepsProps {
prefixCls?: string;
style?: React.CSSProperties;
className?: string;
children?: React.ReactNode;
direction?: 'horizontal' | 'vertical';
type?: 'default' | 'navigation';
labelPlacement?: 'horizontal' | 'vertical';
iconPrefix?: string;
status?: Status;
size?: 'default' | 'small';
current?: number;
progressDot?: ProgressDotRender | boolean;
stepIcon?: StepIconRender;
initial?: number;
icons?: Icons;
onChange?: (current: number) => void;
}
export default class Steps extends React.Component<StepsProps> {
static Step: typeof Step;
static defaultProps: {
type: string;
prefixCls: string;
iconPrefix: string;
direction: string;
labelPlacement: string;
initial: number;
current: number;
status: string;
size: string;
progressDot: boolean;
};
onStepClick: (next: number) => void;
render(): JSX.Element;
}