UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

43 lines (42 loc) 1.37 kB
import React, { Component, CSSProperties } from 'react'; import PropTypes from 'prop-types'; import { Size } from '../_util/enum'; export interface StepsProps { prefixCls?: string; iconPrefix?: string; current?: number; status?: 'wait' | 'process' | 'finish' | 'error'; size?: Size; direction?: 'horizontal' | 'vertical'; progressDot?: boolean | Function; style?: CSSProperties; headerRender?: () => React.ReactElement<any>; headerIcon?: string; headerText?: string; } export interface StepProps { className?: string; description?: React.ReactNode; icon?: React.ReactNode; onClick?: React.MouseEventHandler<HTMLElement>; status?: 'wait' | 'process' | 'finish' | 'error'; disabled?: boolean; title?: React.ReactNode; subTitle?: React.ReactNode; style?: React.CSSProperties; } export default class Steps extends Component<StepsProps, any> { static displayName: string; static Step: React.ClassicComponentClass<StepProps>; static StepGroup: React.ClassicComponentClass<StepsProps>; static defaultProps: { iconPrefix: string; current: number; }; static propTypes: { prefixCls: PropTypes.Requireable<string>; iconPrefix: PropTypes.Requireable<string>; current: PropTypes.Requireable<number>; }; render(): JSX.Element; }