Add type definitions for Steps.Step (#14468)

fix #14442
This commit is contained in:
wx1322 2019-01-22 17:11:31 +08:00 committed by zombieJ
parent 0e8e2b53e4
commit 7faae1ada5

View File

@ -18,8 +18,15 @@ export interface StepsProps {
style?: React.CSSProperties;
}
export interface StepProps {
description?: React.ReactNode;
icon?: React.ReactNode;
status?: 'wait' | 'process' | 'finish' | 'error';
title?: React.ReactNode;
}
export default class Steps extends React.Component<StepsProps, any> {
static Step = RcSteps.Step;
static Step = RcSteps.Step as React.ClassicComponentClass<StepProps>;
static defaultProps = {
current: 0,