Merge pull request #14903 from ilanus/fix/step-missing-types

Types: add "onClick" and "className" types for Step
This commit is contained in:
Ilan 2019-02-18 19:14:43 +01:00 committed by GitHub
commit b54f3674e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,22 +5,24 @@ import Icon from '../icon';
import { ConfigConsumer, ConfigConsumerProps } from '../config-provider';
export interface StepsProps {
prefixCls?: string;
iconPrefix?: string;
className?: string;
current?: number;
direction?: 'horizontal' | 'vertical';
iconPrefix?: string;
initial?: number;
labelPlacement?: 'horizontal' | 'vertical';
status?: 'wait' | 'process' | 'finish' | 'error';
size?: 'default' | 'small';
direction?: 'horizontal' | 'vertical';
prefixCls?: string;
progressDot?: boolean | Function;
size?: 'default' | 'small';
status?: 'wait' | 'process' | 'finish' | 'error';
style?: React.CSSProperties;
}
export interface StepProps {
className?: string;
description?: React.ReactNode;
icon?: React.ReactNode;
onClick?: React.MouseEventHandler<any>;
status?: 'wait' | 'process' | 'finish' | 'error';
title?: React.ReactNode;
}