ant-design/components/steps/index.tsx
潘晓升 e4d7e5e510 Update index.tsx (#9126)
add the “style” property for declare file
2018-01-26 10:38:28 +08:00

37 lines
789 B
TypeScript

import * as React from 'react';
import PropTypes from 'prop-types';
import RcSteps from 'rc-steps';
export interface StepsProps {
prefixCls?: string;
iconPrefix?: string;
current?: number;
status?: 'wait' | 'process' | 'finish' | 'error';
size?: 'default' | 'small';
direction?: 'horizontal' | 'vertical';
progressDot?: boolean | Function;
style?: React.CSSProperties;
}
export default class Steps extends React.Component<StepsProps, any> {
static Step = RcSteps.Step;
static defaultProps = {
prefixCls: 'ant-steps',
iconPrefix: 'ant',
current: 0,
};
static propTypes = {
prefixCls: PropTypes.string,
iconPrefix: PropTypes.string,
current: PropTypes.number,
};
render() {
return (
<RcSteps {...this.props} />
);
}
}