mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-27 02:18:34 +08:00
35 lines
721 B
TypeScript
35 lines
721 B
TypeScript
import * as React from 'react';
|
|
import { PropTypes } from 'react';
|
|
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';
|
|
}
|
|
|
|
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} />
|
|
);
|
|
}
|
|
}
|