You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
758 B

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;
}
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() {
9 years ago
return (
<RcSteps {...this.props} />
9 years ago
);
}
}