From 8eddf15fd14dc635e3cf367ea2894af5fb57485d Mon Sep 17 00:00:00 2001 From: ilanus Date: Mon, 18 Feb 2019 13:23:04 +0100 Subject: [PATCH] update steps types --- components/steps/index.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/steps/index.tsx b/components/steps/index.tsx index 78f9ff79f9..04e7356ff2 100644 --- a/components/steps/index.tsx +++ b/components/steps/index.tsx @@ -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; status?: 'wait' | 'process' | 'finish' | 'error'; title?: React.ReactNode; }