acud
Version:
acg react 组件库
39 lines (38 loc) • 1.16 kB
TypeScript
import * as React from 'react';
import { ProgressDotRender } from './src/steps';
export interface StepsProps {
type?: 'default' | 'navigation';
className?: string;
current?: number;
direction?: 'horizontal' | 'vertical';
iconPrefix?: string;
initial?: number;
labelPlacement?: 'horizontal' | 'vertical';
prefixCls?: string;
progressDot?: boolean | ProgressDotRender;
responsive?: boolean;
size?: 'default' | 'small';
status?: 'wait' | 'process' | 'finish' | 'error';
style?: React.CSSProperties;
onChange?: (current: number) => void;
children?: React.ReactNode;
}
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;
}
declare const Steps: {
(props: StepsProps): React.JSX.Element;
Step: typeof import("./src/step").default;
defaultProps: {
current: number;
};
};
export default Steps;